Skip to content

Commit

Permalink
fix: ditch not recommended -Wp prefixes preventing default gcc flag o…
Browse files Browse the repository at this point in the history
…verwrite

(cherry picked from commit a1b65bb)
  • Loading branch information
kamiccolo authored and mergify[bot] committed Jan 14, 2025
1 parent 9405eba commit 5475221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/compilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ if ( MINGW OR UNIX OR MSYS ) # MINGW, Linux, APPLE, CYGWIN
endif()
endif()

add_compile_options(-Wp,-D_GLIBCXX_ASSERTIONS)
add_compile_options(-D_GLIBCXX_ASSERTIONS)

if (CMAKE_BUILD_TYPE STREQUAL Release AND NOT (APPLE OR MINGW OR MSYS))
add_compile_options(-Wp,-D_FORTIFY_SOURCE=2) # Requires to compile with -O2
add_compile_options(-D_FORTIFY_SOURCE=2) # Requires to compile with -O2
endif()

if(BUILD_WITH_COVERAGE)
Expand Down

0 comments on commit 5475221

Please sign in to comment.