blob: 15c26b85aa86533a43bcc42a313c53c44a0ed455 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -401,7 +401,6 @@
-Wno-unknown-pragmas # allows unknown pragmas (such as #pragma region)
-fpack-struct=8 # struct member alignment - 8 bytes
-Wformat # enables format string checking warnings during compilation
- -Wformat-security # warns about potentially insecure format string usages
-Werror=format-security # treats format string security warnings as errors
-Wno-comment # allows multi-line comments
-fstack-protector-strong # enables stack protection for vulnerable functions that contain: An array of any size and type
@@ -442,19 +441,6 @@
)
endif ()
- # configuration specific defines
- if ("${BUILD_TYPE}" STREQUAL "release" OR
- "${BUILD_TYPE}" STREQUAL "release-internal" OR
- "${BUILD_TYPE}" STREQUAL "releaseinternal")
- set (COMMON_COMPILE_OPTIONS ${COMMON_COMPILE_OPTIONS}
- -O3 # optimize for speed with conforming optimizations
- -Werror # treats warning as errors
- -fvisibility=hidden # hides non-exported symbols
- -flto # enables Link-Time Optimization (LTO) at compile-time; must be consistent with LTO at link-time
- -fPIC # generates position-independent code during the compilation phase
- )
- endif ()
-
if (NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
set (COMMON_COMPILE_OPTIONS ${COMMON_COMPILE_OPTIONS}
-msse
|