sdl_runtime_compiler git · main
SDL3 game for running and compiling code at runtime
C++ 72.3% C 26.2%git clone https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler.gitwget https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler/archive/sdl_runtime_compiler.tar.gzFix compiler output Unicode bs
src/systems/mod_loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systems/mod_loader.cpp b/src/systems/mod_loader.cpp index 4582c84..f0e8d53 100644 --- a/src/systems/mod_loader.cpp +++ b/src/systems/mod_loader.cpp @@ -92,7 +92,7 @@ ModLoader::build(TextWallList& texts, const std::string& user_src, float world_s pending_so_ = "/tmp/game_mod_" + std::to_string(build_serial_++) + ".so"; // Build a shared library. -fPIC + -shared; stderr→stdout for error capture. - std::string cmd = "gcc -shared -fPIC -O0 -I"; + std::string cmd = "LC_ALL=C gcc -shared -fPIC -O0 -I"; cmd += MOD_INCLUDE_DIR; cmd += " "; cmd += MOD_SRC_PATH;