diff --git a/AMBuildScript b/AMBuildScript index a6d6634..e23e76b 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -276,9 +276,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