summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-12 17:07:10 +0200
committerStanislaw Halik <sthalik@CROOKED-SCHEMER>2016-08-12 17:11:41 +0200
commit91755ca9ea20735568b4d5cf40a0a7ee7d5d2b7a (patch)
tree78413f7c059e0fdec7bbbe90fb5d8cece65070d0 /cmake
parent44e1d01c82ad7e41bf39c281a111ad6b25a8cc71 (diff)
cmake: fun mingw-w64 stuff
Diffstat (limited to 'cmake')
-rw-r--r--cmake/mingw-w64.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/mingw-w64.cmake b/cmake/mingw-w64.cmake
index 0a392a32..ecf4cff3 100644
--- a/cmake/mingw-w64.cmake
+++ b/cmake/mingw-w64.cmake
@@ -47,7 +47,7 @@ set(_CFLAGS_DEBUG "-g -ggdb")
set(_CXXFLAGS_RELEASE "${_CFLAGS_RELEASE}")
set(_CXXFLAGS_DEBUG "${_CFLAGS_DEBUG}")
-set(_LDFLAGS "-Wl,--as-needed,--nxcompat,--no-seh")
+set(_LDFLAGS "-Wl,--as-needed,--nxcompat,--no-seh,--gc-sections")
set(_LDFLAGS_RELEASE "")
set(_LDFLAGS_DEBUG "")
@@ -59,7 +59,7 @@ endif()
set(WARNINGS_ENABLE ${enable-val} CACHE BOOL "Emit additional warnings at compile-time")
# these are very noisy, high false positive rate. only for development.
set(WARNINGS_FINAL_SUGGESTIONS FALSE CACHE BOOL "Emit very noisy warnings at compile-time")
-set(WARNINGS_NUMERIC FALSE CACHE BOOL "Emit very noisy warnings at compile-time")
+set(WARNINGS_NUMERIC ${enable-val} CACHE BOOL "Emit very noisy warnings at compile-time")
set(WARNINGS_MISSING_OVERRIDE FALSE CACHE BOOL "Emit very noisy warnings at compile-time")
set(noisy-warns "")