Skip to content

Commit e12ec32

Browse files
committed
fix(libc): 'gnu' should never mean 'none' on 'linux'
1 parent 54843f0 commit e12ec32

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

triplet.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,16 @@ var Triplet = ('object' === typeof module && exports) || {};
725725
}
726726
}
727727

728+
// See <https://github.com/webinstall/webi-build-classifier/pull/11>
729+
if (target.os === 'linux') {
730+
if (target.libc === 'none') {
731+
let isGnuOnly = terms.includes('gnu');
732+
if (isGnuOnly) {
733+
target.libc = 'gnu';
734+
}
735+
}
736+
}
737+
728738
// for (let ext of Triplet.TERMS_EXTS_BUILD) {
729739
// if (filename.endsWith(ext)) {
730740
// if (!target.ext) {

0 commit comments

Comments
 (0)