Skip to content

Commit 1fdcd5a

Browse files
committed
[C++] Do not include debug symbols in Release builds.
-g and O0 are automatically set by CMake in Debug builds.
1 parent 6f4c423 commit 1fdcd5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ endif()
8181
find_package(Threads)
8282

8383
if(UNIX)
84-
add_compile_options(-g -Wall -Wpedantic -Wextra -Wno-unused-parameter)
84+
add_compile_options(-Wall -Wpedantic -Wextra -Wno-unused-parameter)
8585
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0")
8686
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Ofast")
8787
endif()

0 commit comments

Comments
 (0)