mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-08 19:08:31 +00:00
Restore the frame pointer on Linux (#78)
See alliedmodders/sourcemod#1200
This commit is contained in:
parent
6c8495f058
commit
24affc964c
@ -204,10 +204,12 @@ class MMSConfig(object):
|
|||||||
elif cxx.behavior == 'msvc':
|
elif cxx.behavior == 'msvc':
|
||||||
cfg.cflags += ['/Od', '/RTC1']
|
cfg.cflags += ['/Od', '/RTC1']
|
||||||
|
|
||||||
|
# Don't omit the frame pointer.
|
||||||
# This needs to be after our optimization flags which could otherwise disable it.
|
# This needs to be after our optimization flags which could otherwise disable it.
|
||||||
if cxx.name == 'msvc':
|
if cxx.behavior == 'gcc':
|
||||||
# Don't omit the frame pointer.
|
cxx.cflags += ['-fno-omit-frame-pointer']
|
||||||
cfg.cflags += ['/Oy-']
|
elif cxx.behavior == 'msvc':
|
||||||
|
cxx.cflags += ['/Oy-']
|
||||||
|
|
||||||
# Platform-specifics
|
# Platform-specifics
|
||||||
if builder.target_platform == 'linux':
|
if builder.target_platform == 'linux':
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user