Skip to content

Commit 792609b

Browse files
committed
Add -g to release builds.
1 parent 4fa8b55 commit 792609b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ include(CheckCXXSourceCompiles)
2121
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
2222
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Werror -Wall -Wextra -Wno-unused-parameter -Wno-error=unused-variable -Wno-error=sign-compare -std=c++11")
2323
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
24-
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG")
25-
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")
24+
set(CMAKE_CXX_FLAGS_MINSIZEREL "-g -Os -DNDEBUG")
25+
set(CMAKE_CXX_FLAGS_RELEASE "-g -O2 -DNDEBUG")
2626
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")
2727
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
2828
# /Zi - Produces a program database (PDB) that contains type information and symbolic debugging information for use with the debugger.

entityx/tags/TagsComponent_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ int size(const T &t) {
2727
int n = 0;
2828
for (auto i : t) {
2929
++n;
30-
(void)i; // Unused on purpose, suppress warning
30+
(void)i; // Unused on purpose, suppress warning
3131
}
3232
return n;
3333
}

0 commit comments

Comments
 (0)