mirror of
https://bitbucket.org/stellabellumswg/src.git
synced 2026-01-17 00:05:21 -05:00
simplify our cflags
This commit is contained in:
@@ -92,18 +92,17 @@ elseif (UNIX)
|
|||||||
-fno-threadsafe-statics -fslp-vectorize \
|
-fno-threadsafe-statics -fslp-vectorize \
|
||||||
-fno-stack-protector -fstrict-enums -finline-hint-functions \
|
-fno-stack-protector -fstrict-enums -finline-hint-functions \
|
||||||
-fno-coverage-mapping -fno-spell-checking \
|
-fno-coverage-mapping -fno-spell-checking \
|
||||||
-mno-retpoline -fstrict-return -frelaxed-template-template-args \
|
-mno-retpoline")
|
||||||
-fsplit-dwarf-inlining -faligned-allocation -fno-unroll-loops -freroll-loops")
|
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -ggdb")
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -ggdb")
|
||||||
|
|
||||||
# RELWITHDEBINFO is used for building bins that produce profdata files
|
# RELWITHDEBINFO is used for building bins that produce profdata files
|
||||||
# we only need the basics of our heavy optimizations here, i think - that and one of these flags
|
# we only need the basics of our heavy optimizations here, i think - that and one of these flags
|
||||||
# breaks JNI when we profile
|
# breaks JNI when we profile
|
||||||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-Ofast -fno-unroll-loops -finline-hint-functions -fprofile-instr-generate")
|
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-Ofast -finline-hint-functions -fprofile-instr-generate")
|
||||||
|
|
||||||
# MINSIZEREL is used for profiled, flto builds
|
# MINSIZEREL is used for profiled, flto builds
|
||||||
set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_RELEASE} -flto=full -fwhole-program-vtables")
|
set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_RELEASE} -flto -fwhole-program-vtables")
|
||||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||||
# O3 and Ofast include one or more flags that cause java to crash when using gcc6
|
# O3 and Ofast include one or more flags that cause java to crash when using gcc6
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2 -fno-signed-zeros -freciprocal-math -fno-unroll-loops -fno-tree-loop-optimize")
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2 -fno-signed-zeros -freciprocal-math -fno-unroll-loops -fno-tree-loop-optimize")
|
||||||
|
|||||||
Reference in New Issue
Block a user