mirror of
https://github.com/SWG-Source/src.git
synced 2026-08-03 03:16:01 -04:00
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:
+6
-2
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user