From 6a307bfcee77e45b78e904271ed32b8972015188 Mon Sep 17 00:00:00 2001
From: Asher Baker <asherkin@limetech.io>
Date: Wed, 4 Mar 2020 21:43:13 +0000
Subject: [PATCH] Restore the frame pointer on Linux (#1200)

Looks like the default here changed when we upgraded the Linux build server.

This is causing issues when debugging crash dumps.
---
 AMBuildScript | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/AMBuildScript b/AMBuildScript
index 05cbb356..7aa75da5 100644
--- a/AMBuildScript
+++ b/AMBuildScript
@@ -322,6 +322,9 @@ class SMConfig(object):
     if builder.options.opt == '1':
       cxx.cflags += ['-O3']
 
+    # Don't omit the frame pointer.
+    cxx.cflags += ['-fno-omit-frame-pointer']
+
   def configure_msvc(self, cxx):
     if builder.options.debug == '1':
       cxx.cflags += ['/MTd']