From 6ae0931fd2add8ed154c65383328cfa333bd4084 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Thu, 15 Feb 2018 10:27:09 -0600 Subject: [PATCH] build_proton: Don't strip by default --- build_proton.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/build_proton.sh b/build_proton.sh index 55bf8928..b2671933 100755 --- a/build_proton.sh +++ b/build_proton.sh @@ -11,21 +11,24 @@ TOP="$PWD" PLATFORM=$(uname) if [ "$PLATFORM" == "Darwin" ]; then CC="ccache clang -g" - STRIPFLAGS='' AMD64_WRAPPER="" I386_WRAPPER="" else CC="ccache gcc -g" - STRIPFLAGS='-s' AMD64_WRAPPER="schroot --chroot steamrt_scout_beta_amd64 --" I386_WRAPPER="schroot --chroot steamrt_scout_beta_i386 --" fi -STRIP='strip' -if [ "$1" == "--debug" ]; then - #don't strip - STRIPFLAGS='' +if [ "$1" == "--release" ]; then + STRIP='strip' + if [ "$PLATFORM" == "Darwin" ]; then + STRIPFLAGS='' + else + STRIPFLAGS='-s' + fi +else STRIP='' + STRIPFLAGS='' fi DST_DIR="$TOP/build/dist"