sync complete

This commit is contained in:
DarthArgus
2016-12-26 23:52:38 -06:00
parent 35e92f519f
commit 694e5b316c
13 changed files with 24 additions and 6 deletions
+12 -6
View File
@@ -84,15 +84,21 @@ elseif(UNIX)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Ofast \
-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-coverage-mapping -fno-spell-checking -fshort-enums -finline-functions \
-finline-hint-functions -fno-unroll-loops")
-fno-stack-protector -fstrict-enums -fno-spell-checking \
-fno-coverage-mapping -fstrict-vtable-pointers -finline-functions \
-finline-hint-functions -fshort-enums -fno-unroll-loops \
-flto -fwhole-program-vtables")
# these only work on 3.9+ -finline-functions -finline-hint-functions
# these only work on 3.8+ -fno-coverage-mapping -fstrict-vtable-pointers
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -ggdb")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
# 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_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Og")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2 -fno-signed-zeros -freciprocal-math \
-fno-unroll-loops -fno-tree-loop-optimize \
-fabi-version=9 -fabi-compat-version=9")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Og -fabi-version=9 -fabi-compat-version=9")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
endif()
@@ -102,7 +108,7 @@ elseif(UNIX)
-msse -msse2 -msse3 -mmmx -m3dnow \
-Wformat -Wno-overloaded-virtual -Wno-missing-braces -Wno-format \
-Wno-write-strings -Wno-unknown-pragmas \
-Wno-uninitialized -Wno-reorder -Wno-tautological-constant-out-of-range-compare")
-Wno-uninitialized -Wno-reorder -Wno-tautological-constant-out-of-range-compare")
add_definitions(-DLINUX -D_REENTRANT -Dlinux -D_USING_STL -D_GNU_SOURCE -D_XOPEN_SOURCE=500 -U_FORTIFY_SOURCE)
endif()
@@ -1,4 +1,6 @@
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/CommoditiesServer.profdata)
set(SHARED_SOURCES
shared/AuctionBid.cpp
shared/AuctionBid.h
@@ -1,4 +1,6 @@
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/ConnectionServer.profdata)
set(SHARED_SOURCES
shared/CentralConnection.cpp
shared/CentralConnection.h
@@ -1,3 +1,5 @@
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/LoginServer.profdata)
set(SHARED_SOURCES
shared/CentralServerConnection.cpp
shared/CentralServerConnection.h
@@ -1,4 +1,6 @@
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/PlanetServer.profdata)
set(SHARED_SOURCES
shared/CentralServerConnection.cpp
shared/CentralServerConnection.h
@@ -1,4 +1,6 @@
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/SwgDatabaseServer.profdata)
set(SHARED_SOURCES
shared/buffers/AuctionLocationsBuffer.cpp
shared/buffers/AuctionLocationsBuffer.h
@@ -1,4 +1,6 @@
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/SwgGameServer.profdata)
set(SHARED_SOURCES
shared/combat/combat.def
shared/combat/CombatEngine.cpp