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 e5d83d4b9..a16577b27 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 \
@@ -31,6 +31,19 @@ ccache -s
31 31
32ctest -VV -C Release 32ctest -VV -C Release
33 33
34# Separate debug symbols from specified executables
35for EXE in yuzu; do
36 EXE_PATH="bin/$EXE"
37 # Copy debug symbols out
38 objcopy --only-keep-debug $EXE_PATH $EXE_PATH.debug
39 # Add debug link and strip debug symbols
40 objcopy -g --add-gnu-debuglink=$EXE_PATH.debug $EXE_PATH $EXE_PATH.out
41 # Overwrite original with stripped copy
42 mv $EXE_PATH.out $EXE_PATH
43done
44# Strip debug symbols from all executables
45find bin/ -type f -not -regex '.*.debug' -exec strip -g {} ';'
46
34DESTDIR="$PWD/AppDir" ninja install 47DESTDIR="$PWD/AppDir" ninja install
35rm -vf AppDir/usr/bin/yuzu-cmd AppDir/usr/bin/yuzu-tester 48rm -vf AppDir/usr/bin/yuzu-cmd AppDir/usr/bin/yuzu-tester
36 49