Skip to content

Commit a56dcac

Browse files
committed
build: Fix incorrect target_os -> target_arch check
This was introduced in 2a68f7f ("Add musl_v1_2_3 feature"). Fixes: #4526 (backport <#4550>) (cherry picked from commit 4c52a68)
1 parent 20d3990 commit a56dcac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ fn main() {
9595
let musl_v1_2_3 = env::var("RUST_LIBC_UNSTABLE_MUSL_V1_2_3").is_ok();
9696
println!("cargo:rerun-if-env-changed=RUST_LIBC_UNSTABLE_MUSL_V1_2_3");
9797
// loongarch64 and ohos have already updated
98-
if musl_v1_2_3 || target_os == "loongarch64" || target_env == "ohos" {
98+
if musl_v1_2_3 || target_arch == "loongarch64" || target_env == "ohos" {
9999
// FIXME(musl): enable time64 api as well
100100
set_cfg("musl_v1_2_3");
101101
}

0 commit comments

Comments
 (0)