Skip to content

Commit 4c52a68

Browse files
committed
build: Fix incorrect target_os -> target_arch check
This was introduced in 2a68f7f ("Add musl_v1_2_3 feature"). Fixes: #4526
1 parent fecc86e commit 4c52a68

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
@@ -91,7 +91,7 @@ fn main() {
9191
let musl_v1_2_3 = env::var("RUST_LIBC_UNSTABLE_MUSL_V1_2_3").is_ok();
9292
println!("cargo:rerun-if-env-changed=RUST_LIBC_UNSTABLE_MUSL_V1_2_3");
9393
// loongarch64 and ohos have already updated
94-
if musl_v1_2_3 || target_os == "loongarch64" || target_env == "ohos" {
94+
if musl_v1_2_3 || target_arch == "loongarch64" || target_env == "ohos" {
9595
// FIXME(musl): enable time64 api as well
9696
set_cfg("musl_v1_2_3");
9797
}

0 commit comments

Comments
 (0)