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

Unified Diff: tools/gyp/configurations_make.gypi

Issue 1663863002: Add product mode: (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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
Index: tools/gyp/configurations_make.gypi
diff --git a/tools/gyp/configurations_make.gypi b/tools/gyp/configurations_make.gypi
index 307b1c2b68cd6f3682cb876cae73b3ae99074930..a42eca31829fb8e2aacaceaf2103a92ccaf297c3 100644
--- a/tools/gyp/configurations_make.gypi
+++ b/tools/gyp/configurations_make.gypi
@@ -42,32 +42,12 @@
'abstract': 1,
'cflags': [ '-m32', '-msse2', '-mfpmath=sse' ],
'ldflags': [ '-m32', ],
- 'conditions': [
- ['c_frame_pointers==1', {
- 'cflags': [
- # Clang on Linux will still omit frame pointers from leaf
- # functions unless told otherwise:
- # (note this flag only works on recent GCC versions.)
- '-mno-omit-leaf-frame-pointer',
- ],
- }],
- ],
},
'Dart_Linux_x64_Base': {
'abstract': 1,
'cflags': [ '-m64', '-msse2' ],
'ldflags': [ '-m64', ],
- 'conditions': [
- ['c_frame_pointers==1', {
- 'cflags': [
- # Clang on Linux will still omit frame pointers from leaf
- # functions unless told otherwise:
- # (note this flag only works on recent GCC versions.)
- '-mno-omit-leaf-frame-pointer',
- ],
- }],
- ],
},
'Dart_Linux_simarm_Base': {
@@ -243,36 +223,38 @@
'Dart_Linux_Debug': {
'abstract': 1,
- 'conditions': [
- ['c_frame_pointers==1', {
- 'cflags': [
- '-fno-omit-frame-pointer',
- ],
- 'defines': [
- 'NATIVE_CODE_HAS_FRAME_POINTERS'
- ],
- }],
- ],
'cflags': [
'-O<(dart_debug_optimization_level)',
+ '-fno-omit-frame-pointer',
+ # Clang on Linux will still omit frame pointers from leaf
+ # functions unless told otherwise:
+ # (note this flag only works on recent GCC versions.)
+ '-mno-omit-leaf-frame-pointer',
],
},
'Dart_Linux_Release': {
'abstract': 1,
- 'conditions': [
- ['c_frame_pointers==1', {
- 'cflags': [
- '-fno-omit-frame-pointer',
- ],
- 'defines': [
- 'NATIVE_CODE_HAS_FRAME_POINTERS'
- ],
- }],
+ 'cflags': [
+ '-O3',
+ '-ffunction-sections',
+ '-fno-omit-frame-pointer',
+ # Clang on Linux will still omit frame pointers from leaf
+ # functions unless told otherwise:
+ # (note this flag only works on recent GCC versions.)
+ '-mno-omit-leaf-frame-pointer',
],
+ 'ldflags': [
+ '-Wl,--gc-sections',
+ ],
+ },
+
+ 'Dart_Linux_Product': {
+ 'abstract': 1,
'cflags': [
'-O3',
'-ffunction-sections',
+ '-fomit-frame-pointer',
],
'ldflags': [
'-Wl,--gc-sections',

Powered by Google App Engine
This is Rietveld 408576698