Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 510710 | Differences between
and this patch

Collapse All | Expand All

(-)a/common/src/Utilities/CMakeLists.txt (-41 lines)
Lines 14-60 set(CommonFlags Link Here
14
	-fno-strict-aliasing
14
	-fno-strict-aliasing
15
    )
15
    )
16
16
17
# set optimization flags
18
set(OptimizationFlags
19
	-falign-functions
20
	-falign-jumps
21
	-falign-labels
22
	-falign-loops
23
	-fcaller-saves
24
	-fcprop-registers
25
	-fcrossjumping
26
	-fcse-follow-jumps
27
	-fcse-skip-blocks
28
	-fdefer-pop
29
	-fdelete-null-pointer-checks
30
	-fgcse
31
	-fgcse-lm
32
	-fif-conversion
33
	-fif-conversion2
34
	-fmerge-constants
35
	-foptimize-sibling-calls
36
	-fpeephole2
37
	-fregmove
38
	-freorder-blocks
39
	-freorder-functions 
40
	-frerun-cse-after-loop
41
	-fsched-interblock
42
	-fsched-spec
43
	-fstrict-overflow
44
	-fthread-jumps
45
	-ftree-ccp
46
	-ftree-ch
47
	-ftree-copyrename
48
	-ftree-dce
49
	-ftree-dominator-opts
50
	-ftree-fre
51
	-ftree-lrs
52
	-ftree-pre
53
	-ftree-sra
54
	-ftree-ter
55
	-ftree-vrp
56
	-funit-at-a-time)
57
58
#Clang doesn't support a few common flags that GCC does.
17
#Clang doesn't support a few common flags that GCC does.
59
if(NOT USE_CLANG)
18
if(NOT USE_CLANG)
60
	set(UtilitiesFinalFlags
19
	set(UtilitiesFinalFlags
(-)a/common/src/x86emitter/CMakeLists.txt (-41 lines)
Lines 14-60 set(CommonFlags Link Here
14
	-fno-strict-aliasing
14
	-fno-strict-aliasing
15
    )
15
    )
16
16
17
# set optimization flags
18
set(OptimizationFlags
19
	-falign-functions
20
	-falign-jumps
21
	-falign-labels
22
	-falign-loops
23
	-fcaller-saves
24
	-fcprop-registers
25
	-fcrossjumping
26
	-fcse-follow-jumps
27
	-fcse-skip-blocks
28
	-fdefer-pop
29
	-fdelete-null-pointer-checks
30
	-fgcse
31
	-fgcse-lm
32
	-fif-conversion
33
	-fif-conversion2
34
	-fmerge-constants
35
	-foptimize-sibling-calls
36
	-fpeephole2
37
	-fregmove
38
	-freorder-blocks
39
	-freorder-functions 
40
	-frerun-cse-after-loop
41
	-fsched-interblock
42
	-fsched-spec
43
	-fstrict-overflow
44
	-fthread-jumps
45
	-ftree-ccp
46
	-ftree-ch
47
	-ftree-copyrename
48
	-ftree-dce
49
	-ftree-dominator-opts
50
	-ftree-fre
51
	-ftree-lrs
52
	-ftree-pre
53
	-ftree-sra
54
	-ftree-ter
55
	-ftree-vrp
56
	-funit-at-a-time)
57
58
#Clang doesn't support a few common flags that GCC does.
17
#Clang doesn't support a few common flags that GCC does.
59
if(NOT USE_CLANG)
18
if(NOT USE_CLANG)
60
	set(x86emitterFinalFlags
19
	set(x86emitterFinalFlags
(-)a/pcsx2/CMakeLists.txt (-41 lines)
Lines 27-73 set(CommonFlags Link Here
27
    -DWX_PRECOMP
27
    -DWX_PRECOMP
28
	)
28
	)
29
29
30
# set optimization flags
31
set(OptimizationFlags
32
	-falign-functions
33
	-falign-jumps
34
	-falign-labels
35
	-falign-loops
36
	-fcaller-saves
37
	-fcprop-registers
38
	-fcrossjumping
39
	-fcse-follow-jumps
40
	-fcse-skip-blocks
41
	-fdefer-pop
42
	-fdelete-null-pointer-checks
43
	-fgcse
44
	-fgcse-lm
45
	-fif-conversion
46
	-fif-conversion2
47
	-fmerge-constants
48
	-foptimize-sibling-calls
49
	-fpeephole2
50
	-fregmove
51
	-freorder-blocks
52
	-freorder-functions
53
	-frerun-cse-after-loop
54
	-fsched-interblock
55
	-fsched-spec
56
	-fstrict-overflow
57
	-fthread-jumps
58
	-ftree-ccp
59
	-ftree-ch
60
	-ftree-copyrename
61
	-ftree-dce
62
	-ftree-dominator-opts
63
	-ftree-fre
64
	-ftree-lrs
65
	-ftree-pre
66
	-ftree-sra
67
	-ftree-ter
68
	-ftree-vrp
69
	-funit-at-a-time)
70
71
#Clang doesn't support a few common flags that GCC does.
30
#Clang doesn't support a few common flags that GCC does.
72
if(NOT USE_CLANG)
31
if(NOT USE_CLANG)
73
	set(pcsx2FinalFlags ${CommonFlags} -fno-guess-branch-probability -fno-dse -fno-tree-dse)
32
	set(pcsx2FinalFlags ${CommonFlags} -fno-guess-branch-probability -fno-dse -fno-tree-dse)
(-)a/plugins/CDVDiso/src/CMakeLists.txt (-4 lines)
Lines 9-18 endif() Link Here
9
# plugin name
9
# plugin name
10
set(Output CDVDiso)
10
set(Output CDVDiso)
11
11
12
set(OptimizationFlags
13
    -O2
14
    )
15
16
if(CMAKE_BUILD_TYPE STREQUAL Debug)
12
if(CMAKE_BUILD_TYPE STREQUAL Debug)
17
    set(CDVDisoFinalFlags "")
13
    set(CDVDisoFinalFlags "")
18
14
(-)a/plugins/CDVDlinuz/Src/CMakeLists.txt (-5 lines)
Lines 7-17 set(CommonFlags Link Here
7
    -D_LARGEFILE64_SOURCE
7
    -D_LARGEFILE64_SOURCE
8
    )
8
    )
9
9
10
set(OptimizationFlags
11
    -O2
12
    -fomit-frame-pointer
13
    )
14
15
if(CMAKE_BUILD_TYPE STREQUAL Debug)
10
if(CMAKE_BUILD_TYPE STREQUAL Debug)
16
    set(CDVDlinuzFinalFlags ${CommonFlags})
11
    set(CDVDlinuzFinalFlags ${CommonFlags})
17
12
(-)a/plugins/GSdx/CMakeLists.txt (-5 lines)
Lines 18-28 set(CommonFlags Link Here
18
    -Wunused-variable # __dummy variable need to be investigated
18
    -Wunused-variable # __dummy variable need to be investigated
19
    )
19
    )
20
20
21
set(OptimizationFlags
22
    -O2
23
    )
24
25
26
if(CMAKE_BUILD_TYPE STREQUAL Debug)
21
if(CMAKE_BUILD_TYPE STREQUAL Debug)
27
    set(GSdxFinalFlags ${GSdxFinalFlags} ${CommonFlags} -D_DEBUG)
22
    set(GSdxFinalFlags ${GSdxFinalFlags} ${CommonFlags} -D_DEBUG)
28
23
(-)a/plugins/onepad/CMakeLists.txt (-4 lines)
Lines 9-18 endif() Link Here
9
# plugin name
9
# plugin name
10
set(Output onepad-1.1.0)
10
set(Output onepad-1.1.0)
11
11
12
set(OptimizationFlags
13
    -O2
14
    )
15
16
if(CMAKE_BUILD_TYPE STREQUAL Debug)
12
if(CMAKE_BUILD_TYPE STREQUAL Debug)
17
    set(onepadFinalFlags "")
13
    set(onepadFinalFlags "")
18
14
(-)a/plugins/spu2-x/src/CMakeLists.txt (-4 lines)
Lines 15-24 endif() Link Here
15
# plugin name
15
# plugin name
16
set(Output spu2x-2.0.0)
16
set(Output spu2x-2.0.0)
17
17
18
set(OptimizationFlags
19
    -O2
20
    )
21
22
if(CMAKE_BUILD_TYPE STREQUAL Debug)
18
if(CMAKE_BUILD_TYPE STREQUAL Debug)
23
    set(spu2xFinalFlags "")
19
    set(spu2xFinalFlags "")
24
20
(-)a/plugins/zerogs/dx/CMakeLists.txt (-2 / +2 lines)
Lines 65-72 endif(CMAKE_BUILD_TYPE STREQUAL Devel) Link Here
65
65
66
# Release - Build
66
# Release - Build
67
if(CMAKE_BUILD_TYPE STREQUAL Release)
67
if(CMAKE_BUILD_TYPE STREQUAL Release)
68
	set(CMAKE_C_FLAGS_RELEASE "-Wall -fPIC -m32 -O2 -s")
68
	set(CMAKE_C_FLAGS_RELEASE "-Wall -fPIC -m32 -s")
69
	set(CMAKE_CXX_FLAGS_RELEASE "-Wall -fPIC -m32 -O2 -s")
69
	set(CMAKE_CXX_FLAGS_RELEASE "-Wall -fPIC -m32 -s")
70
	
70
	
71
	# add defines
71
	# add defines
72
	add_definitions()
72
	add_definitions()
(-)a/plugins/zerogs/opengl/CMakeLists.txt (-4 lines)
Lines 7-16 set(CommonFlags Link Here
7
    -Wall
7
    -Wall
8
    )
8
    )
9
9
10
set(OptimizationFlags
11
    -O2
12
    )
13
14
# Debug - Build
10
# Debug - Build
15
if(CMAKE_BUILD_TYPE STREQUAL Debug)
11
if(CMAKE_BUILD_TYPE STREQUAL Debug)
16
	# add defines
12
	# add defines
(-)a/plugins/zerospu2/CMakeLists.txt (-4 lines)
Lines 9-18 endif() Link Here
9
# plugin name
9
# plugin name
10
set(Output zerospu2)
10
set(Output zerospu2)
11
11
12
set(OptimizationFlags
13
    -O2
14
    )
15
16
if(CMAKE_BUILD_TYPE STREQUAL Debug)
12
if(CMAKE_BUILD_TYPE STREQUAL Debug)
17
    set(zerospu2FinalFlags "")
13
    set(zerospu2FinalFlags "")
18
14
(-)a/plugins/zzogl-pg/opengl/CMakeLists.txt (-4 lines)
Lines 26-35 set(CommonFlags Link Here
26
    -Wunused-variable
26
    -Wunused-variable
27
    )
27
    )
28
28
29
set(OptimizationFlags
30
    -O2
31
    )
32
33
#Clang doesn't support a few common flags that GCC does.
29
#Clang doesn't support a few common flags that GCC does.
34
if(NOT USE_CLANG)
30
if(NOT USE_CLANG)
35
	set(zzoglFinalFlags
31
	set(zzoglFinalFlags
(-)a/plugins/zzogl-pg/opengl/ZeroGSShaders/CMakeLists.txt (-4 lines)
Lines 17-26 set(CommonFlags Link Here
17
    -DNVIDIA_CG_API
17
    -DNVIDIA_CG_API
18
    )
18
    )
19
19
20
set(OptimizationFlags
21
    -O2
22
    )
23
24
if(CMAKE_BUILD_TYPE STREQUAL Debug)
20
if(CMAKE_BUILD_TYPE STREQUAL Debug)
25
    set(zerogsshadersFinalFlags
21
    set(zerogsshadersFinalFlags
26
        ${CommonFlags} -D_DEBUG
22
        ${CommonFlags} -D_DEBUG
(-)a/tools/bin2cpp/CMakeLists.txt (-2 / +1 lines)
Lines 23-29 endif(CMAKE_BUILD_TYPE STREQUAL Devel) Link Here
23
if(CMAKE_BUILD_TYPE STREQUAL Release)
23
if(CMAKE_BUILD_TYPE STREQUAL Release)
24
	# add defines
24
	# add defines
25
	set(bin2cppFinalFlags
25
	set(bin2cppFinalFlags
26
		-O2 -s -Wall -fexceptions
26
		-s -Wall -fexceptions
27
	)
27
	)
28
endif(CMAKE_BUILD_TYPE STREQUAL Release)
28
endif(CMAKE_BUILD_TYPE STREQUAL Release)
29
29
30
- 

Return to bug 510710