Commit graph

11 commits

Author SHA1 Message Date
cbnolok
c4a7febd24 Fix state buffer usage for nested conditional expressions. 2025-05-22 11:56:43 +02:00
cbnolok
09ada280df CMake: Added FORCE_DEBUG_INFO option to enable debug info generation also for Nightly and Release builds
Useful for profiling
2025-05-09 20:05:46 +02:00
cbnolok
8ed8ceb675 Changed: Retrieving the MORE1/2 of items with the flag CAN_I_SCRIPTEDMORE will always return the raw numerical value.
This allows using the full numerical range available.
2025-05-03 12:36:48 +02:00
cbnolok
f542b8b6f2 CompilerFlagsBase: misspelled dead_strip flag 2025-04-27 18:18:28 +02:00
cbnolok
3e71a71fc6 Linking: moved --icf flag to CompilerFlagsChecker 2025-04-27 16:05:26 +02:00
cbnolok
dc55ffa6f1 Fix cmake/CompilerFlags*: actually use the base/common compiler flags, fix --gc-sections for OSX/AppleClang, temporarily comment some warnings. 2025-04-26 17:38:13 +02:00
cbnolok
205549abc2 CMake toolchains: moved some flags from CompilerFlagsChecker to CompilerFlagsBase.
The one moved are supported since a long time/older compiler versions
and from both Clang and GCC, so they can be safely moved.
Also, not having to check them, CMake configuration is a bit faster.
2025-04-26 17:34:59 +02:00
cbnolok
1344f98a8e Added more non-MSVC compiler warnings. 2025-03-09 18:24:32 +01:00
Max Kellermann
5a9b918081 cmake: link with --gc-sections
This linker flag, if supported, removes unused sections from the
executable.  Unused sections are those that do not contain public
symbols (therefore `-fvisibility=hidden`) and are not referenced by
other sections.

This shrinks the code size by 4%:

    text	  data	   bss	   dec	   hex	filename
 4069421	285904	1427713	5783038	583dfe	Debug/bin-native64/SphereSvrX64_release
 3918858	284456	1427713	5631027	55ec33	Debug/bin-native64/SphereSvrX64_release
2025-02-15 13:49:00 +01:00
cbnolok
43ca74b5a2 Renamed CMake flags CXX_FLAGS_EXTRA and CMAKE_EXE_LINFER_FLAGS_EXTRA
to CUSTOM_CXX_FLAGS and CUSTOM_EXE_LINKER_FLAGS.
Added -Wdouble-promotion.
2025-02-15 13:27:05 +01:00
cbnolok
0b19f79b99 Moved fixed GCC/Clang compilation flags to separate cmake files. Fixed a
CMake parsing error causing optimizations not being applied correctly to
Nightly and Release build.
2025-02-14 07:27:23 +01:00