Skip to content

Commit a851f17

Browse files
authored
Merge pull request #1464 from PLC-lang/script
fix: set the rustc_target variable
2 parents 367139b + e0e234c commit a851f17

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)