Skip to content

Commit 0db15a8

Browse files
Windows doesn't have a libc (parcel-bundler#208)
Co-authored-by: Devon Govett <devongovett@gmail.com>
1 parent e5106e5 commit 0db15a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/build-npm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function buildNode(triple, cpu, os, abi, t) {
7878
pkg2.name += '-' + t;
7979
pkg2.os = [os];
8080
pkg2.cpu = [cpu];
81-
if (abi) {
81+
if (abi && os !== "win32") {
8282
pkg2.libc = [abiToNodeLibc[abi] || abi];
8383
}
8484
pkg2.main = name;
@@ -108,7 +108,7 @@ function buildCLI(triple, cpu, os, abi, t) {
108108
pkg2.os = [os];
109109
pkg2.cpu = [cpu];
110110
pkg2.files = [binary];
111-
if (abi) {
111+
if (abi && os !== "win32") {
112112
pkg2.libc = [abiToNodeLibc[abi] || abi];
113113
}
114114
delete pkg2.main;

0 commit comments

Comments
 (0)