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

Enable debug symbol compression for linux CI build

parent 7877d698
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
...@@ -151,7 +151,7 @@ variables: ...@@ -151,7 +151,7 @@ variables:
- source .venv/bin/activate - source .venv/bin/activate
- pip3 install --upgrade llbase autobuild certifi sentry-cli cmake ninja - pip3 install --upgrade llbase autobuild certifi sentry-cli cmake ninja
script: 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 build -c Release --no-configure
- autobuild graph -c Release --graph-file alchemy-linuxs${AUTOBUILD_ADDRSIZE}-dependencies.svg build-linux-${AUTOBUILD_ADDRSIZE}/autobuild-package.xml - 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 - if [ "$USE_SENTRY" = "TRUE" ]; then sentry-cli difutil bundle-sources build-linux-*/newview/alchemy-bin; fi
......
...@@ -59,6 +59,8 @@ if(USE_LTO) ...@@ -59,6 +59,8 @@ if(USE_LTO)
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ${USE_LTO}) set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ${USE_LTO})
endif() endif()
option(COMPRESS_DEBUG "Compress debug sections on supported compilers" OFF)
set(CMAKE_POSITION_INDEPENDENT_CODE ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_C_VISIBILITY_PRESET "hidden") set(CMAKE_C_VISIBILITY_PRESET "hidden")
set(CMAKE_CXX_VISIBILITY_PRESET "hidden") set(CMAKE_CXX_VISIBILITY_PRESET "hidden")
...@@ -194,6 +196,10 @@ if (LINUX) ...@@ -194,6 +196,10 @@ if (LINUX)
-pthread -pthread
) )
if(COMPRESS_DEBUG)
add_compile_options(-gz)
endif()
if (USE_AVX2) if (USE_AVX2)
add_compile_options(-mavx2) add_compile_options(-mavx2)
elseif (USE_AVX) 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