From 1eca8ebf259458ab13dc9c35867d1d77cf11fd2c Mon Sep 17 00:00:00 2001 From: Stan Hu Date: Wed, 28 Apr 2021 15:07:17 -0700 Subject: [PATCH] Enable frame pointer in Ruby compile options This will make it easier to profile and debug Ruby builds. This also matches with what we do in production: https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/4030 --- scripts/install-ruby | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/install-ruby b/scripts/install-ruby index 952cf80..d8e350d 100755 --- a/scripts/install-ruby +++ b/scripts/install-ruby @@ -55,6 +55,7 @@ if [[ -d "/patches/ruby/$RUBY_VERSION" ]]; then fi # Compile +export optflags="-fno-omit-frame-pointer" ./configure --enable-shared --with-jemalloc --disable-install-doc --disable-install-rdoc --disable-install-capi make install -j $(nproc)