Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Unified Diff: gyp/common_conditions.gypi

Issue 17370005: Add gyp define for optimization level (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gyp/common_variables.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gyp/common_conditions.gypi
===================================================================
--- gyp/common_conditions.gypi (revision 9698)
+++ gyp/common_conditions.gypi (working copy)
@@ -76,7 +76,7 @@
'msvs_settings': {
'VCCLCompilerTool': {
'DebugInformationFormat': '3', # programDatabase (/Zi)
- 'Optimization': '3', # full (/Ox)
+ 'Optimization': '<(skia_release_optimization_level)',
'WholeProgramOptimization': 'true', #/GL
# Changing the floating point model requires rebaseling gm images
#'FloatingPointModel': '2', # fast (/fp:fast)
@@ -137,7 +137,10 @@
'cflags': ['-g']
},
'Release': {
- 'cflags': ['-O3 -g'],
+ 'cflags': [
+ '-O<(skia_release_optimization_level)',
+ '-g',
+ ],
'defines': [ 'NDEBUG' ],
},
},
@@ -235,7 +238,7 @@
},
'Release': {
'xcode_settings': {
- 'GCC_OPTIMIZATION_LEVEL': '3',
+ 'GCC_OPTIMIZATION_LEVEL': '<(skia_release_optimization_level)',
},
'defines': [ 'NDEBUG' ],
},
@@ -301,7 +304,7 @@
},
'Release': {
'xcode_settings': {
- 'GCC_OPTIMIZATION_LEVEL': '3',
+ 'GCC_OPTIMIZATION_LEVEL': '<(skia_release_optimization_level)',
},
'defines': [ 'NDEBUG' ],
},
« no previous file with comments | « no previous file | gyp/common_variables.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698