Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Restore the frame pointer on Linux (#78)
  • Loading branch information
asherkin committed Dec 28, 2020
1 parent b8d1fd4 commit 7341116
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions AMBuildScript
Expand Up @@ -267,9 +267,11 @@ class MMSConfig(object):
elif cxx.behavior == 'msvc':
cxx.cflags += ['/Od', '/RTC1']

# Don't omit the frame pointer.
# This needs to be after our optimization flags which could otherwise disable it.
if cxx.family == 'msvc':
# Don't omit the frame pointer.
if cxx.behavior == 'gcc':
cxx.cflags += ['-fno-omit-frame-pointer']
elif cxx.behavior == 'msvc':
cxx.cflags += ['/Oy-']

# Platform-specifics
Expand Down

0 comments on commit 7341116

Please sign in to comment.