diff options
| author | Odd Stranne <odd@mullvad.net> | 2018-05-29 15:48:46 +0200 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2018-06-08 11:13:04 +0200 |
| commit | dbee096e51ce75b63fbfcbc2a89b3c74bdc83f31 (patch) | |
| tree | 578ed5d03a8f9d4940ebe9ce079e77511534edc7 /build.sh | |
| parent | 0f20e41883fbfeca1e7dddf5bcd3e7b72572b6a2 (diff) | |
| download | mullvadvpn-dbee096e51ce75b63fbfcbc2a89b3c74bdc83f31.tar.xz mullvadvpn-dbee096e51ce75b63fbfcbc2a89b3c74bdc83f31.zip | |
Do not strip binaries on Windows
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 23 |
1 files changed, 13 insertions, 10 deletions
@@ -48,21 +48,24 @@ fi cargo +stable clean if [[ "$(uname -s)" == "MINGW"* ]]; then - ./build_winfw.sh + ./build_winfw.sh fi echo "Compiling mullvad-daemon in release mode with $RUSTC_VERSION..." cargo +stable build --release -binaries=( - ./target/release/mullvad-daemon - ./target/release/mullvad - ./target/release/problem-report -) -for binary in ${binaries[*]}; do - echo "Stripping debugging symbols from $binary" - strip $binary -done +# Only strip binaries on platforms other than Windows. +if [[ "$(uname -s)" != "MINGW"* ]]; then + binaries=( + ./target/release/mullvad-daemon + ./target/release/mullvad + ./target/release/problem-report + ) + for binary in ${binaries[*]}; do + echo "Stripping debugging symbols from $binary" + strip $binary + done +fi echo "Updating relay list..." ./target/release/list-relays > dist-assets/relays.json |
