summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2024-01-24 13:32:16 +0100
committerLinus Färnstrand <linus@mullvad.net>2024-01-25 08:27:19 +0100
commit321e5c8368cc7348687f691cf1122304346e83f0 (patch)
tree6f0e151e5783b978cda618ab5d9bcdad043c3920
parent0d22ba37d40b41da5a23e8d8e1672ff881acd951 (diff)
downloadmullvadvpn-321e5c8368cc7348687f691cf1122304346e83f0.tar.xz
mullvadvpn-321e5c8368cc7348687f691cf1122304346e83f0.zip
Remove debug symbol stripping from build.sh
-rwxr-xr-xbuild.sh16
1 files changed, 3 insertions, 13 deletions
diff --git a/build.sh b/build.sh
index 2ab5e0e290..75a62755fb 100755
--- a/build.sh
+++ b/build.sh
@@ -200,17 +200,12 @@ function sign_win {
}
# Build the daemon and other Rust/C++ binaries, optionally
-# sign them, strip them of debug symbols and copy to `dist-assets/`.
+# sign them, and copy to `dist-assets/`.
function build {
local current_target=${1:-""}
local for_target_string=" for local target $HOST"
- local stripbin="strip"
if [[ -n $current_target ]]; then
for_target_string=" for $current_target"
-
- if [[ "$current_target" == "aarch64-unknown-linux-gnu" && "$(uname -m)" != "aarch64" ]]; then
- stripbin="aarch64-linux-gnu-strip"
- fi
fi
################################################################################
@@ -287,13 +282,8 @@ function build {
local source="$cargo_output_dir/$binary"
local destination="$destination_dir/$binary"
- if [[ "$(uname -s)" == "MINGW"* || "$binary" == *.dylib ]]; then
- log_info "Copying $source => $destination"
- cp "$source" "$destination"
- else
- log_info "Stripping $source => $destination"
- "${stripbin}" "$source" -o "$destination"
- fi
+ log_info "Copying $source => $destination"
+ cp "$source" "$destination"
if [[ "$SIGN" == "true" && "$(uname -s)" == "MINGW"* ]]; then
sign_win "$destination"