Skip to content

Commit

Permalink
cmake: build Saigo arm nexe with -O0 to avoid a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
illwieckz committed Jan 25, 2025
1 parent 8cc5260 commit 3265f2d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cmake/DaemonFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,17 @@ else()
endif()
endif()

if (NACL AND USE_NACL_SAIGO AND SAIGO_ARCH STREQUAL "arm")
# This should be set for every build type because build type flags
# are set after the other custom flags and then have the last word.
# DEBUG should already use -O0 anyway.
# See: https://github.com/Unvanquished/Unvanquished/issues/3297
set_c_cxx_flag("-O0" DEBUG)
set_c_cxx_flag("-O0" RELEASE)
set_c_cxx_flag("-O0" RELWITHDEBINFO)
set_c_cxx_flag("-O0" MINSIZEREL)
endif()

# Extra debug flags.
set_c_cxx_flag("-g3" RELWITHDEBINFO)
set_c_cxx_flag("-g3" DEBUG)
Expand Down

0 comments on commit 3265f2d

Please sign in to comment.