File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,15 @@ else()
1919 set (CMAKE_BUILD_TYPE Release)
2020endif ()
2121
22+ # Override default CMake Release flags to keep assertions enabled
23+ set (CMAKE_CXX_FLAGS_RELEASE "-O3 -g3 -fPIC -Wall" )
24+
2225# check envrionment variable string compare
2326if (${CMAKE_BUILD_TYPE} STREQUAL "Debug" )
2427 add_compile_definitions (DEBUG=1)
2528 add_compile_options (-Wall -O0 -g3 -fPIC)
2629else ()
2730 add_compile_definitions (DEBUG=0)
28- add_compile_options (-Wall -O3 -g3 -fPIC)
2931endif ()
3032
3133# run command
@@ -92,4 +94,4 @@ add_custom_target(gen_pyi ALL
9294 )
9395
9496
95- install (TARGETS accel-sim.out DESTINATION ${CMAKE_SOURCE_DIR} /bin/$ENV{ACCELSIM_CONFIG} )
97+ install (TARGETS accel-sim.out DESTINATION ${CMAKE_SOURCE_DIR} /bin/$ENV{ACCELSIM_CONFIG} )
You can’t perform that action at this time.
0 commit comments