commit db503b89fd11c25da678f22c029c3872f8ce1509
Author: Sigbjørn Skjæret <sigbjorn.skjaeret@huggingface.co>
Date: Tue Dec 1 00:27:09 2026 +0100
server : fix build (#33410)
diff --git a/tools/server/server-tools.cpp b/tools/server/server-tools.cpp
index 97bf2136d..156ea9ffc 100644
--- a/tools/server/server-tools.cpp
+++ b/tools/server/server-tools.cpp
@@ -190,9 +190,11 @@ public:
const std::function<bool()> & should_stop = nullptr) const = 0;
};
+#if defined(LLAMA_SUBPROCESS)
// time the output gets to close once the job is killed, and between two checks of exit, deadline and stop
static constexpr int SERVER_TOOL_SUBPROCESS_DRAIN_MS = 2000;
static constexpr int SERVER_TOOL_SUBPROCESS_POLL_MS = 100;
+#endif
// output of a job, capped at max_output, handed to on_chunk as it arrives until on_chunk returns false
struct subprocess_output {