summaryrefslogtreecommitdiff
path: root/.ci/scripts/linux/docker.sh
diff options
context:
space:
mode:
Diffstat (limited to '.ci/scripts/linux/docker.sh')
-rwxr-xr-x.ci/scripts/linux/docker.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/.ci/scripts/linux/docker.sh b/.ci/scripts/linux/docker.sh
index 4b0193565..7bba01d62 100755
--- a/.ci/scripts/linux/docker.sh
+++ b/.ci/scripts/linux/docker.sh
@@ -11,7 +11,7 @@ ccache -s
11mkdir build || true && cd build 11mkdir build || true && cd build
12cmake .. \ 12cmake .. \
13 -DBoost_USE_STATIC_LIBS=ON \ 13 -DBoost_USE_STATIC_LIBS=ON \
14 -DCMAKE_BUILD_TYPE=Release \ 14 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
15 -DCMAKE_CXX_FLAGS="-march=x86-64-v2" \ 15 -DCMAKE_CXX_FLAGS="-march=x86-64-v2" \
16 -DCMAKE_CXX_COMPILER=/usr/lib/ccache/g++ \ 16 -DCMAKE_CXX_COMPILER=/usr/lib/ccache/g++ \
17 -DCMAKE_C_COMPILER=/usr/lib/ccache/gcc \ 17 -DCMAKE_C_COMPILER=/usr/lib/ccache/gcc \
@@ -32,6 +32,19 @@ ccache -s
32 32
33ctest -VV -C Release 33ctest -VV -C Release
34 34
35# Separate debug symbols from specified executables
36for EXE in yuzu; do
37 EXE_PATH="bin/$EXE"
38 # Copy debug symbols out
39 objcopy --only-keep-debug $EXE_PATH $EXE_PATH.debug
40 # Add debug link and strip debug symbols
41 objcopy -g --add-gnu-debuglink=$EXE_PATH.debug $EXE_PATH $EXE_PATH.out
42 # Overwrite original with stripped copy
43 mv $EXE_PATH.out $EXE_PATH
44done
45# Strip debug symbols from all executables
46find bin/ -type f -not -regex '.*.debug' -exec strip -g {} ';'
47
35DESTDIR="$PWD/AppDir" ninja install 48DESTDIR="$PWD/AppDir" ninja install
36rm -vf AppDir/usr/bin/yuzu-cmd AppDir/usr/bin/yuzu-tester 49rm -vf AppDir/usr/bin/yuzu-cmd AppDir/usr/bin/yuzu-tester
37 50