diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 25544add4b122f655e2f0aad2abd1abfdd6f8172..98ef0c5569ff7b84babc90dd5bf7839d3d09d17e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -151,7 +151,7 @@ variables:
     - source .venv/bin/activate
     - pip3 install --upgrade llbase autobuild certifi sentry-cli cmake ninja
   script:
-    - autobuild configure -c Release -- -DUSE_LTO=${USE_LTO} -DDISABLE_FATAL_WARNINGS=ON -DREVISION_FROM_VCS=FALSE
+    - autobuild configure -c Release -- -DUSE_LTO=${USE_LTO} -DDISABLE_FATAL_WARNINGS=ON -DREVISION_FROM_VCS=FALSE -DCOMPRESS_DEBUG=ON
     - autobuild build -c Release --no-configure
     - autobuild graph -c Release --graph-file alchemy-linuxs${AUTOBUILD_ADDRSIZE}-dependencies.svg build-linux-${AUTOBUILD_ADDRSIZE}/autobuild-package.xml
     - if [ "$USE_SENTRY" = "TRUE" ]; then sentry-cli difutil bundle-sources build-linux-*/newview/alchemy-bin; fi
diff --git a/indra/cmake/00-Common.cmake b/indra/cmake/00-Common.cmake
index d46f04b5fc03bcb0c66db3e50d46555d58f2ee9a..d5e33ceb1a7c568fee557e54ca084e5e786193fb 100644
--- a/indra/cmake/00-Common.cmake
+++ b/indra/cmake/00-Common.cmake
@@ -59,6 +59,8 @@ if(USE_LTO)
   set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ${USE_LTO})
 endif()
 
+option(COMPRESS_DEBUG "Compress debug sections on supported compilers" OFF)
+
 set(CMAKE_POSITION_INDEPENDENT_CODE ON)
 set(CMAKE_C_VISIBILITY_PRESET "hidden")
 set(CMAKE_CXX_VISIBILITY_PRESET "hidden")
@@ -194,6 +196,10 @@ if (LINUX)
     -pthread
     )
 
+  if(COMPRESS_DEBUG)
+    add_compile_options(-gz)
+  endif()
+
   if (USE_AVX2)
     add_compile_options(-mavx2)
   elseif (USE_AVX)