Add help when possibly using an unsupported libc

This commit is contained in:
Lovell Fuller 2023-12-12 21:01:09 +00:00
parent 19fa4cd1d3
commit c5eaeb2ddb

View File

@ -65,7 +65,7 @@ if (sharp) {
' npm install --force @img/sharp-wasm32' ' npm install --force @img/sharp-wasm32'
); );
} }
if (isLinux && /symbol not found/i.test(messages)) { if (isLinux && /(symbol not found|CXXABI_)/i.test(messages)) {
try { try {
const { engines } = require(`@img/sharp-libvips-${runtimePlatform}/package`); const { engines } = require(`@img/sharp-libvips-${runtimePlatform}/package`);
const libcFound = `${familySync()} ${versionSync()}`; const libcFound = `${familySync()} ${versionSync()}`;