diff options
Diffstat (limited to 'build/common.gypi')
-rw-r--r-- | build/common.gypi | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/build/common.gypi b/build/common.gypi index 23350c1..9d061a3 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -3511,8 +3511,16 @@ }], ['profiling==1', { 'cflags': [ - '-marm', # Probably reduntant, but recommend by "perf" docs. - '-mapcs-frame', # Seems required by -fno-omit-frame-pointer. + # Thumb code with frame pointer makes chrome crash + # early. + '-marm', + '-mapcs-frame', # Required by -fno-omit-frame-pointer. + # The perf report sometimes incorrectly attributes + # code from tail calls. + '-fno-optimize-sibling-calls', + ], + 'cflags!': [ + '-fomit-frame-pointer', ], }], ['clang==1', { |