1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-03-27 14:22:12 +01:00

Restore the frame pointer on Linux (#78)

See alliedmodders/sourcemod#1200
This commit is contained in:
Asher Baker 2020-12-28 02:13:44 +00:00
parent 6c8495f058
commit 24affc964c

View File

@ -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':