forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ppsspp-1.4-O2.patch
32 lines (29 loc) · 1.54 KB
/
ppsspp-1.4-O2.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 19038c88a436..bf50f5cf52fb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -195,11 +195,11 @@ if(NOT MSVC)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -D_DEBUG")
set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} -Os -D_NDEBUG")
- set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -D_NDEBUG")
+ set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O2 -D_NDEBUG")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -O2 -g -D_NDEBUG")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g -D_DEBUG")
set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} -Os -D_NDEBUG")
- set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3 -D_NDEBUG")
+ set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2 -D_NDEBUG")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -O2 -g -D_NDEBUG")
#TODO: Remove this and include the file properly everywhere it makes sense
# First step is too use the macros everywhere
@@ -509,10 +509,10 @@ include_directories(ext/cityhash)
if (NOT MSVC)
# These can be fast even for debug.
- set_target_properties(udis86 PROPERTIES COMPILE_FLAGS "-O3")
- set_target_properties(cityhash PROPERTIES COMPILE_FLAGS "-O3")
+ set_target_properties(udis86 PROPERTIES COMPILE_FLAGS "-O2")
+ set_target_properties(cityhash PROPERTIES COMPILE_FLAGS "-O2")
if(NOT ZLIB_FOUND)
- set_target_properties(zlib PROPERTIES COMPILE_FLAGS "-O3")
+ set_target_properties(zlib PROPERTIES COMPILE_FLAGS "-O2")
endif()
endif()