-fno-strict-aliasing
)
# set optimization flags
set(OptimizationFlags
-falign-functions
-falign-jumps
-falign-labels
-falign-loops
-fcaller-saves
-fcprop-registers
-fcrossjumping
-fcse-follow-jumps
-fcse-skip-blocks
-fdefer-pop
-fdelete-null-pointer-checks
-fgcse
-fgcse-lm
-fif-conversion
-fif-conversion2
-fmerge-constants
-foptimize-sibling-calls
-fpeephole2
-fregmove
-freorder-blocks
-freorder-functions
-frerun-cse-after-loop
-fsched-interblock
-fsched-spec
-fstrict-overflow
-fthread-jumps
-ftree-ccp
-ftree-ch
-ftree-copyrename
-ftree-dce
-ftree-dominator-opts
-ftree-fre
-ftree-lrs
-ftree-pre
-ftree-sra
-ftree-ter
-ftree-vrp
-funit-at-a-time)
#Clang doesn't support a few common flags that GCC does.
if(NOT USE_CLANG)
set(UtilitiesFinalFlags
set(x86emitterFinalFlags
-DWX_PRECOMP
set(pcsx2FinalFlags ${CommonFlags} -fno-guess-branch-probability -fno-dse -fno-tree-dse)
# plugin name
set(Output CDVDiso)
-O2
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(CDVDisoFinalFlags "")
-D_LARGEFILE64_SOURCE
-fomit-frame-pointer
set(CDVDlinuzFinalFlags ${CommonFlags})
-Wunused-variable # __dummy variable need to be investigated
set(GSdxFinalFlags ${GSdxFinalFlags} ${CommonFlags} -D_DEBUG)
set(Output onepad-1.1.0)
set(onepadFinalFlags "")
set(Output spu2x-2.0.0)
set(spu2xFinalFlags "")
# Release - Build
if(CMAKE_BUILD_TYPE STREQUAL Release)
set(CMAKE_C_FLAGS_RELEASE "-Wall -fPIC -m32 -O2 -s")
set(CMAKE_C_FLAGS_RELEASE "-Wall -fPIC -m32 -s")
set(CMAKE_CXX_FLAGS_RELEASE "-Wall -fPIC -m32 -O2 -s")
set(CMAKE_CXX_FLAGS_RELEASE "-Wall -fPIC -m32 -s")
# add defines
add_definitions()
-Wall
# Debug - Build
set(Output zerospu2)
set(zerospu2FinalFlags "")
-Wunused-variable
set(zzoglFinalFlags
-DNVIDIA_CG_API
set(zerogsshadersFinalFlags
${CommonFlags} -D_DEBUG
set(bin2cppFinalFlags
-O2 -s -Wall -fexceptions
-s -Wall -fexceptions
endif(CMAKE_BUILD_TYPE STREQUAL Release)
-