From 6c83f82bd4e20fe5436a8ff0c531ef1abaae9e7d Mon Sep 17 00:00:00 2001 From: David Snopek Date: Sat, 1 Nov 2025 08:17:12 -0500 Subject: [PATCH] Disable "use_static_cpp" when "use_hot_reload" is enabled --- tools/linux.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/linux.py b/tools/linux.py index ae8019877..ce4bbbc1e 100644 --- a/tools/linux.py +++ b/tools/linux.py @@ -19,6 +19,8 @@ def generate(env): elif env.use_hot_reload: # Required for extensions to truly unload. env.Append(CXXFLAGS=["-fno-gnu-unique"]) + # Reload won't work with "use_static_cpp", so disable it. + env["use_static_cpp"] = False env.Append(CCFLAGS=["-fPIC", "-Wwrite-strings"]) env.Append(LINKFLAGS=["-Wl,-R,'$$ORIGIN'"])