Commit 8c7550f9 authored by kasperl@chromium.org's avatar kasperl@chromium.org

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
parent 354deb6f
...@@ -77,7 +77,7 @@ LIBRARY_FLAGS = { ...@@ -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 = { ...@@ -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 = { ...@@ -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']
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment