diff options
Diffstat (limited to 'src/js/thirdparty/detect-libc.linux.js')
-rw-r--r-- | src/js/thirdparty/detect-libc.linux.js | 35 |
1 files changed, 35 insertions, 0 deletions
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()); +} |