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

This commit is contained in:
DarthArgus
2016-12-16 11:23:39 +00:00
parent 7198a2d1ab
commit 0ce034da7c
+6 -2
View File
@@ -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")