Skip to content
Permalink
Browse files
Restore the frame pointer on Linux (#78)
  • Loading branch information
asherkin committed Dec 28, 2020
1 parent 6c8495f commit 24affc9
Showing 1 changed file with 5 additions and 3 deletions.
@@ -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':

0 comments on commit 24affc9

Please sign in to comment.