Skip to content

Commit e0e234c

Browse files
committed
fix: set the rustc_target variable
if using unknown in the target triple, we should make sure the new target variable is set
1 parent 367139b commit e0e234c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,8 @@ function run_package_std() {
230230
# if the target ends with -linux-gnu but does not have unknown, add unknown
231231
if [[ $val == *"-linux-gnu" && $val != *"unknown-linux-gnu" ]]; then
232232
rustc_target="${val/-linux-gnu/-unknown-linux-gnu}"
233+
else
234+
rustc_target=$val
233235
fi
234236
rel_dir="$target_dir/$rustc_target"
235237
if [[ $release -ne 0 ]]; then

0 commit comments

Comments
 (0)