mirror of https://github.com/PCSX2/pcsx2.git
cmake: reenable a couple of missing gcc optimization
This commit is contained in:
parent
837b62d5e8
commit
d5830ef708
|
@ -12,14 +12,6 @@ set(CommonFlags
|
||||||
-fno-strict-aliasing
|
-fno-strict-aliasing
|
||||||
)
|
)
|
||||||
|
|
||||||
#Clang doesn't support a few common flags that GCC does.
|
|
||||||
if(NOT USE_CLANG)
|
|
||||||
set(UtilitiesFinalFlags
|
|
||||||
${UtilitiesFinalFlags}
|
|
||||||
${CommonFlags} -fno-guess-branch-probability -fno-dse -fno-tree-dse
|
|
||||||
)
|
|
||||||
endif(NOT USE_CLANG)
|
|
||||||
|
|
||||||
# Debug - Build
|
# Debug - Build
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||||
|
|
||||||
|
|
|
@ -12,14 +12,6 @@ set(CommonFlags
|
||||||
-fno-strict-aliasing
|
-fno-strict-aliasing
|
||||||
)
|
)
|
||||||
|
|
||||||
#Clang doesn't support a few common flags that GCC does.
|
|
||||||
if(NOT USE_CLANG)
|
|
||||||
set(x86emitterFinalFlags
|
|
||||||
${x86emitterFinalFlags}
|
|
||||||
${CommonFlags} -fno-guess-branch-probability -fno-dse -fno-tree-dse
|
|
||||||
)
|
|
||||||
endif(NOT USE_CLANG)
|
|
||||||
|
|
||||||
# Debug - Build
|
# Debug - Build
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||||
# add defines
|
# add defines
|
||||||
|
|
|
@ -22,15 +22,12 @@ set(CommonFlags
|
||||||
-DWX_PRECOMP
|
-DWX_PRECOMP
|
||||||
)
|
)
|
||||||
|
|
||||||
#Clang doesn't support a few common flags that GCC does.
|
|
||||||
if(NOT USE_CLANG)
|
|
||||||
set(pcsx2FinalFlags ${CommonFlags} -fno-guess-branch-probability -fno-dse -fno-tree-dse)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if ("${PGO}" STREQUAL "generate")
|
if ("${PGO}" STREQUAL "generate")
|
||||||
set(pcsx2FinalFlags ${pcsx2FinalFlags} -fprofile-generate)
|
set(pcsx2FinalFlags -fprofile-generate)
|
||||||
elseif("${PGO}" STREQUAL "use")
|
elseif("${PGO}" STREQUAL "use")
|
||||||
set(pcsx2FinalFlags ${pcsx2FinalFlags} -fprofile-use)
|
set(pcsx2FinalFlags -fprofile-use)
|
||||||
|
else()
|
||||||
|
set(pcsx2FinalFlags "")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Debug - Build
|
# Debug - Build
|
||||||
|
|
Loading…
Reference in New Issue