From 507f3a4d1456859922b25169a8bd93242358505f Mon Sep 17 00:00:00 2001 From: Kawrakow Date: Sun, 30 Nov 2025 19:04:54 +0100 Subject: [PATCH] Fix build with RPC not enabled (#1025) Co-authored-by: Iwan Kawrakow --- common/common.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/common.cpp b/common/common.cpp index 294a88e5..b6ee885c 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -272,6 +272,7 @@ static std::string parse_device_list(const std::string& value) { static std::string add_rpc_devices(std::string& servers) { std::string rpc_devices; +#ifdef GGML_USE_RPC std::vector rpc_servers = string_split(servers, ","); if (rpc_servers.empty()) { throw std::invalid_argument("no RPC servers specified"); @@ -290,6 +291,7 @@ static std::string add_rpc_devices(std::string& servers) { if (!rpc_devices.empty()) { rpc_devices = rpc_devices.substr(0, rpc_devices.size() - 1); // remove trailing comma } +#endif return rpc_devices; }