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.gzAdd maybe useless compile options
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).