Skip to content

Commit

Permalink
Add -g to release builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed May 3, 2014
1 parent 4fa8b55 commit 792609b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ include(CheckCXXSourceCompiles)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
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")
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g")
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG")
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")
set(CMAKE_CXX_FLAGS_MINSIZEREL "-g -Os -DNDEBUG")
set(CMAKE_CXX_FLAGS_RELEASE "-g -O2 -DNDEBUG")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
# /Zi - Produces a program database (PDB) that contains type information and symbolic debugging information for use with the debugger.
Expand Down
2 changes: 1 addition & 1 deletion entityx/tags/TagsComponent_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ int size(const T &t) {
int n = 0;
for (auto i : t) {
++n;
(void)i; // Unused on purpose, suppress warning
(void)i; // Unused on purpose, suppress warning
}
return n;
}
Expand Down

0 comments on commit 792609b

Please sign in to comment.