From 0ce034da7c32d87225b2a4049938b16899c4b434 Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Fri, 16 Dec 2016 11:23:39 +0000 Subject: [PATCH] well, i've yet to replicate the 9.6% to 17% cpu usage run but we're ballpark i guess...more tweaks and reading on flags and doing profiling later --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7f47988b..6b05be91 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,9 +82,13 @@ elseif(UNIX) # Ofast doesn't work with gcc builds if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Ofast \ - -fno-signed-zeros -freciprocal-math -ffp-contract=fast -fcommon \ + -fno-signed-zeros -freciprocal-math -ffp-contract=fast \ -fno-threadsafe-statics -fslp-vectorize-aggressive -fslp-vectorize \ - -fno-stack-protector -fstrict-enums -fstrict-vtable-pointers") + -fno-stack-protector -fstrict-enums -fstrict-vtable-pointers \ + -fno-coverage-mapping -fno-spell-checking -fshort-enums \ + -finline-hint-functions -fvectorize -fwhole-program-vtables ") + #-fno-common -finline-functions + set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -ggdb") if ("${CMAKE_BUILD_TYPE}" STREQUAL "Release")