Skip to content
Snippets Groups Projects
Commit 51d1fe63 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Enable debug symbol compression for linux CI build

parent 616e87b7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment