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:
kasperl@chromium.org 2008-09-22 08:27:54 +00:00
parent 354deb6fa1
commit 8c7550f99a

View File

@ -77,7 +77,7 @@ LIBRARY_FLAGS = {
'LINKFLAGS': ['/DEBUG']
},
'mode:release': {
'CCFLAGS': ['/Ox', '/MT', '/Ob2', '/Oi', '/Oy'],
'CCFLAGS': ['/Ox', '/MT'],
'LINKFLAGS': ['/OPT:REF', '/OPT:ICF']
}
}
@ -187,6 +187,9 @@ SAMPLE_FLAGS = {
'CCFLAGS': ['-m32'],
'LINKFLAGS': ['-m32']
},
'mode:release': {
'CCFLAGS': ['-O2']
},
'mode:debug': {
'CCFLAGS': ['-g', '-O0']
}
@ -199,10 +202,12 @@ SAMPLE_FLAGS = {
'CPPDEFINES': ['USING_V8_SHARED']
},
'mode:release': {
'CCFLAGS': ['/MT'],
'CCFLAGS': ['/Ox', '/MT'],
'LINKFLAGS': ['/OPT:REF', '/OPT:ICF']
},
'mode:debug': {
'CCFLAGS': ['/MTd']
'CCFLAGS': ['/Od', '/MTd'],
'LINKFLAGS': ['/DEBUG']
}
}
}