| 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',
|
| ],
|
| },
|
| },
|
|
|