Skip to content

Commit 7d4a1a3

Browse files
authored
fix: triple with windows-msvc doesn't support -Cforce-unwind-tables=no (#12196)
1 parent d2ae8f2 commit 7d4a1a3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/node_binding/scripts/build.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ async function build() {
8787
}
8888
if (values.profile === "release") {
8989
features.push("info-level");
90-
rustflags.push("-Cforce-unwind-tables=no");
90+
if (process.env.RUST_TARGET && !process.env.RUST_TARGET.startsWith("windows-msvc")) {
91+
rustflags.push("-Cforce-unwind-tables=no");
92+
}
9193
}
9294
if (features.length) {
9395
args.push("--features " + features.join(","));

0 commit comments

Comments
 (0)