diff options
Diffstat (limited to 'src/js/thirdparty')
-rw-r--r-- | src/js/thirdparty/detect-libc.js | 14 | ||||
-rw-r--r-- | src/js/thirdparty/detect-libc.linux.js | 35 |
2 files changed, 38 insertions, 11 deletions
diff --git a/src/js/thirdparty/detect-libc.js b/src/js/thirdparty/detect-libc.js index 303cbdb9e..514a76536 100644 --- a/src/js/thirdparty/detect-libc.js +++ b/src/js/thirdparty/detect-libc.js @@ -1,14 +1,10 @@ -// Hardcoded module "detect-libc" +// Hardcoded module "detect-libc" for darwin export function family() { return Promise.resolve(familySync()); } export function familySync() { - if (process.platform === "linux") { - return GLIBC; - } else { - return null; - } + return null; } export const GLIBC = "glibc"; @@ -19,11 +15,7 @@ export function versionAsync() { } export function version() { - if (process.platform === "linux") { - return "2.29"; - } else { - return null; - } + return null; } export function isNonGlibcLinuxSync() { diff --git a/src/js/thirdparty/detect-libc.linux.js b/src/js/thirdparty/detect-libc.linux.js new file mode 100644 index 000000000..4c6557247 --- /dev/null +++ b/src/js/thirdparty/detect-libc.linux.js @@ -0,0 +1,35 @@ +// Hardcoded module "detect-libc" for linux +export function family() { + return Promise.resolve(familySync()); +} + +export function familySync() { + if (process.platform === "linux") { + return GLIBC; + } else { + return null; + } +} + +export const GLIBC = "glibc"; +export const MUSL = "musl"; + +export function versionAsync() { + return Promise.resolve(version()); +} + +export function version() { + if (process.platform === "linux") { + return "2.29"; + } else { + return null; + } +} + +export function isNonGlibcLinuxSync() { + return false; +} + +export function isNonGlibcLinux() { + return Promise.resolve(isNonGlibcLinuxSync()); +} |