Skip to content

Commit

Permalink
Force -03 in RelWithDebInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdempsey90 committed Feb 6, 2025
1 parent b23c025 commit c368055
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ option(ARTEMIS_ENABLE_OPENMP "Enable OpenMP for artemis and parthenon" OFF)
option(ARTEMIS_ENABLE_COMPILE_TIMING "Enable timing of compilation of artemis" ON)
option(ARTEMIS_ENABLE_ASAN "Enable AddressSanitizer to detect memory errors" OFF)

# Force -03 optimization for RelWithDebInfo
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g -DNDEBUG" CACHE STRING "Force -O3 in RelWithDebInfo mode" FORCE)
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O3 -g -DNDEBUG" CACHE STRING "Force -O3 in RelWithDebInfo mode" FORCE)

# Timing of compilation
if (ARTEMIS_ENABLE_COMPILE_TIMING)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE
Expand Down

0 comments on commit c368055

Please sign in to comment.