File tree 2 files changed +4
-13
lines changed
2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ once_cell = "1.13"
71
71
[profile .release ]
72
72
opt-level = 3
73
73
lto = true
74
+ strip = true
74
75
75
76
# Key generation may take over one minute without optimizations
76
77
# enabled.
Original file line number Diff line number Diff line change @@ -200,17 +200,12 @@ function sign_win {
200
200
}
201
201
202
202
# Build the daemon and other Rust/C++ binaries, optionally
203
- # sign them, strip them of debug symbols and copy to `dist-assets/`.
203
+ # sign them, and copy to `dist-assets/`.
204
204
function build {
205
205
local current_target=${1:- " " }
206
206
local for_target_string=" for local target $HOST "
207
- local stripbin=" strip"
208
207
if [[ -n $current_target ]]; then
209
208
for_target_string=" for $current_target "
210
-
211
- if [[ " $current_target " == " aarch64-unknown-linux-gnu" && " $( uname -m) " != " aarch64" ]]; then
212
- stripbin=" aarch64-linux-gnu-strip"
213
- fi
214
209
fi
215
210
216
211
# ###############################################################################
@@ -287,13 +282,8 @@ function build {
287
282
local source=" $cargo_output_dir /$binary "
288
283
local destination=" $destination_dir /$binary "
289
284
290
- if [[ " $( uname -s) " == " MINGW" * || " $binary " == * .dylib ]]; then
291
- log_info " Copying $source => $destination "
292
- cp " $source " " $destination "
293
- else
294
- log_info " Stripping $source => $destination "
295
- " ${stripbin} " " $source " -o " $destination "
296
- fi
285
+ log_info " Copying $source => $destination "
286
+ cp " $source " " $destination "
297
287
298
288
if [[ " $SIGN " == " true" && " $( uname -s) " == " MINGW" * ]]; then
299
289
sign_win " $destination "
You can’t perform that action at this time.
0 commit comments