Nimbin[12]?SDL & Graphics / sdl_runtime_compiler / commits / b4de583

sdl_runtime_compiler git · main

SDL3 game for running and compiling code at runtime

sdl3 c++ compiler dlopen cmake · first commit 2026-04-19 · last commit 2026-07-03 (3 months ago) · synced 3 days ago · upstream: git.ide3.de/hsnr/sdl-runtime-compiler

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.gz

Add maybe useless compile options

Christian Immanuel · 2026-06-03 08:54 · b4de58338c7379eeda934b7755a787e688623318

 CMakeLists.txt | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 38dedb8..fa73236 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -113,6 +113,13 @@ apply_common_settings(SDL3_RuntimeCompiler)
 target_compile_options(SDL3_RuntimeCompiler PRIVATE
     -Wall -Wextra -Wshadow -Wconversion -Wsign-conversion
     -Wnull-dereference -Wdouble-promotion
+    -Wunused -Wunused-function -Wunused-variable -Wunused-parameter
+    -Wunused-but-set-variable -Wunused-label -Wunused-value
+    -ffunction-sections -fdata-sections
+)
+
+target_link_options(SDL3_RuntimeCompiler PRIVATE
+    -Wl,--gc-sections
 )
 
 # Link-time optimization for Release builds (controlled by ENABLE_LTO).