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

Unified Diff: tools/gyp/configurations_make.gypi

Issue 414303004: Add build configuration variable 'c_frame_pointers' to control whether or not frame pointers are in… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 | « tools/gyp/configurations_android.gypi ('k') | tools/gyp/configurations_msvs.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gyp/configurations_make.gypi
diff --git a/tools/gyp/configurations_make.gypi b/tools/gyp/configurations_make.gypi
index 2b2943c8b57bb3b3dfaf2af1322a11dcbef145a4..17587f39e9e9ee4e339377eedae258c9db46532f 100644
--- a/tools/gyp/configurations_make.gypi
+++ b/tools/gyp/configurations_make.gypi
@@ -135,27 +135,41 @@
'Dart_Linux_Debug': {
'abstract': 1,
+ 'conditions': [
+ ['c_frame_pointers==1', {
+ 'cflags': [
+ '-fno-omit-frame-pointer',
+ # Clang on Linux will still omit frame pointers from leaf
+ # functions unless told otherwise:
+ # '-mno-omit-leaf-frame-pointer',
+ ],
+ 'defines': [
+ 'PROFILE_NATIVE_CODE'
+ ],
+ }],
+ ],
'cflags': [
'-O<(dart_debug_optimization_level)',
- # Uncomment the following line and pass --profile-vm to enable
- # profiling of C++ code within Observatory.
- # '-fno-omit-frame-pointer',
- # Clang on Linux will still omit frame pointers from leaf functions
- # unless told otherwise:
- # '-mno-omit-leaf-frame-pointer',
],
},
'Dart_Linux_Release': {
'abstract': 1,
+ 'conditions': [
+ ['c_frame_pointers==1', {
+ 'cflags': [
+ '-fno-omit-frame-pointer',
+ # Clang on Linux will still omit frame pointers from leaf
+ # functions unless told otherwise:
+ # '-mno-omit-leaf-frame-pointer',
+ ],
+ 'defines': [
+ 'PROFILE_NATIVE_CODE'
+ ],
+ }],
+ ],
'cflags': [
'-O3',
- # Uncomment the following line and pass --profile-vm to enable
- # profiling of C++ code within Observatory.
- # '-fno-omit-frame-pointer',
- # Clang on Linux will still omit frame pointers from leaf functions
- # unless told otherwise:
- # '-mno-omit-leaf-frame-pointer',
],
},
},
« no previous file with comments | « tools/gyp/configurations_android.gypi ('k') | tools/gyp/configurations_msvs.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698