Skip to content

Commit

Permalink
Restore the frame pointer on Linux (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
asherkin committed Dec 28, 2020
1 parent 6c8495f commit 24affc9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions AMBuildScript
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,12 @@ class MMSConfig(object):
elif cxx.behavior == 'msvc':
cfg.cflags += ['/Od', '/RTC1']

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

# Platform-specifics
if builder.target_platform == 'linux':
Expand Down

0 comments on commit 24affc9

Please sign in to comment.