Skip to content

Commit f3947a7

Browse files
authored
fix: target should use includes windows-msvc instead of startsWith (#12198)
1 parent 711cb55 commit f3947a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/node_binding/scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ async function build() {
8787
}
8888
if (values.profile === "release") {
8989
features.push("info-level");
90-
if (process.env.RUST_TARGET && !process.env.RUST_TARGET.startsWith("windows-msvc")) {
90+
if (process.env.RUST_TARGET && !process.env.RUST_TARGET.includes("windows-msvc")) {
9191
rustflags.push("-Cforce-unwind-tables=no");
9292
}
9393
}

0 commit comments

Comments
 (0)