Add compilation flags for optimizing samples built in release
mode. Remove /Ob2 /Oi /Oy from VS build because they are already enabled by /Ox. Review URL: http://codereview.chromium.org/4012 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@352 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
354deb6fa1
commit
8c7550f99a
11
SConstruct
11
SConstruct
@ -77,7 +77,7 @@ LIBRARY_FLAGS = {
|
|||||||
'LINKFLAGS': ['/DEBUG']
|
'LINKFLAGS': ['/DEBUG']
|
||||||
},
|
},
|
||||||
'mode:release': {
|
'mode:release': {
|
||||||
'CCFLAGS': ['/Ox', '/MT', '/Ob2', '/Oi', '/Oy'],
|
'CCFLAGS': ['/Ox', '/MT'],
|
||||||
'LINKFLAGS': ['/OPT:REF', '/OPT:ICF']
|
'LINKFLAGS': ['/OPT:REF', '/OPT:ICF']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -187,6 +187,9 @@ SAMPLE_FLAGS = {
|
|||||||
'CCFLAGS': ['-m32'],
|
'CCFLAGS': ['-m32'],
|
||||||
'LINKFLAGS': ['-m32']
|
'LINKFLAGS': ['-m32']
|
||||||
},
|
},
|
||||||
|
'mode:release': {
|
||||||
|
'CCFLAGS': ['-O2']
|
||||||
|
},
|
||||||
'mode:debug': {
|
'mode:debug': {
|
||||||
'CCFLAGS': ['-g', '-O0']
|
'CCFLAGS': ['-g', '-O0']
|
||||||
}
|
}
|
||||||
@ -199,10 +202,12 @@ SAMPLE_FLAGS = {
|
|||||||
'CPPDEFINES': ['USING_V8_SHARED']
|
'CPPDEFINES': ['USING_V8_SHARED']
|
||||||
},
|
},
|
||||||
'mode:release': {
|
'mode:release': {
|
||||||
'CCFLAGS': ['/MT'],
|
'CCFLAGS': ['/Ox', '/MT'],
|
||||||
|
'LINKFLAGS': ['/OPT:REF', '/OPT:ICF']
|
||||||
},
|
},
|
||||||
'mode:debug': {
|
'mode:debug': {
|
||||||
'CCFLAGS': ['/MTd']
|
'CCFLAGS': ['/Od', '/MTd'],
|
||||||
|
'LINKFLAGS': ['/DEBUG']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user