mirror of https://github.com/PCSX2/pcsx2.git
Merge pull request #457 from PCSX2/clean-gcc-flags
cmake: use O2 instead of every compiler flags
This commit is contained in:
commit
b49d65295f
|
@ -6,54 +6,13 @@ if(NOT TOP_CMAKE_WAS_SOURCED)
|
||||||
endif(NOT TOP_CMAKE_WAS_SOURCED)
|
endif(NOT TOP_CMAKE_WAS_SOURCED)
|
||||||
|
|
||||||
|
|
||||||
# library name
|
|
||||||
set(Output Utilities)
|
set(Output Utilities)
|
||||||
|
|
||||||
# set common flags
|
|
||||||
set(CommonFlags
|
set(CommonFlags
|
||||||
-fno-strict-aliasing
|
-fno-strict-aliasing
|
||||||
)
|
)
|
||||||
|
|
||||||
# set optimization flags
|
set(OptimizationFlags -O2)
|
||||||
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.
|
#Clang doesn't support a few common flags that GCC does.
|
||||||
if(NOT USE_CLANG)
|
if(NOT USE_CLANG)
|
||||||
|
|
|
@ -6,54 +6,13 @@ if(NOT TOP_CMAKE_WAS_SOURCED)
|
||||||
endif(NOT TOP_CMAKE_WAS_SOURCED)
|
endif(NOT TOP_CMAKE_WAS_SOURCED)
|
||||||
|
|
||||||
|
|
||||||
# library name
|
|
||||||
set(Output x86emitter)
|
set(Output x86emitter)
|
||||||
|
|
||||||
# set common flags
|
|
||||||
set(CommonFlags
|
set(CommonFlags
|
||||||
-fno-strict-aliasing
|
-fno-strict-aliasing
|
||||||
)
|
)
|
||||||
|
|
||||||
# set optimization flags
|
set(OptimizationFlags -O2)
|
||||||
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.
|
#Clang doesn't support a few common flags that GCC does.
|
||||||
if(NOT USE_CLANG)
|
if(NOT USE_CLANG)
|
||||||
|
|
|
@ -12,7 +12,6 @@ if(NOT TOP_CMAKE_WAS_SOURCED)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
# set common flags
|
|
||||||
set(CommonFlags
|
set(CommonFlags
|
||||||
# GCC-4.6 crash pcsx2 during the binding of plugins at startup...
|
# GCC-4.6 crash pcsx2 during the binding of plugins at startup...
|
||||||
# Disable this optimization for the moment
|
# Disable this optimization for the moment
|
||||||
|
@ -27,46 +26,7 @@ set(CommonFlags
|
||||||
-DWX_PRECOMP
|
-DWX_PRECOMP
|
||||||
)
|
)
|
||||||
|
|
||||||
# set optimization flags
|
set(OptimizationFlags -O2)
|
||||||
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.
|
#Clang doesn't support a few common flags that GCC does.
|
||||||
if(NOT USE_CLANG)
|
if(NOT USE_CLANG)
|
||||||
|
|
Loading…
Reference in New Issue