Skip to content

Commit

Permalink
build: rm rtti, exceptions, add strictness on non win/msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
Will committed Nov 21, 2023
1 parent 7d1b1e8 commit 67e96a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,17 @@ if(NOT WIN32 AND NOT IS_CC_MSVC)
"-fno-rtti"
"-fstrict-aliasing"
"-fstrict-enums"
"-fstrict-float-cast-overflow"
"-fstrict-overflow"
"-fstrict-return")
if(NOT IS_CC_APPLECLANG)
set(COMPILE_OPTIONS
"${COMPILE_OPTIONS}"
"-fexpensive-optimizations"
"-fwhole-program")
else()
set(COMPILE_OPTIONS
"${COMPILE_OPTIONS}"
"-fstrict-float-cast-overflow")
endif()
endif()

Expand Down

0 comments on commit 67e96a0

Please sign in to comment.