Skip to content

Commit

Permalink
More build cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Apr 30, 2024
1 parent 8b7b577 commit 801d0fa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -356,15 +356,13 @@ if(GCC OR CLANG)
endif()

set(C_CXX_FLAGS "${C_CXX_FLAGS} -Werror -Wformat=2 -Wsign-compare -Wmissing-field-initializers -Wwrite-strings")
if(!MSVC)
if(EMSCRIPTEN)
if(CMAKE_BUILD_TYPE_LOWER STREQUAL "debug" OR CMAKE_BUILD_TYPE_LOWER STREQUAL "relwithdebinfo")
if(MSVC OR EMSCRIPTEN)
# emscripten's emcc/clang does not accept the "-ggdb" flag.
set(C_CXX_FLAGS "${C_CXX_FLAGS} -g")
else()
set(C_CXX_FLAGS "${C_CXX_FLAGS} -ggdb")
endif()

set(C_CXX_FLAGS "${C_CXX_FLAGS} -Wall -fvisibility=hidden -fno-common")
endif()

if(CLANG)
Expand Down

0 comments on commit 801d0fa

Please sign in to comment.