aboutsummaryrefslogtreecommitdiff
path: root/src/javascript/jsc/detect-libc.linux.js
blob: 3a46ffda0eadf62d34097861f847fb379a26697f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// bun only supports glibc at the time of writing
export function family() {
  return Promise.resolve(GLIBC);
}

export function familySync() {
  return GLIBC;
}

export const GLIBC = "glibc";
export const MUSL = "musl";

export function versionAsync() {
  return Promise.resolve(version());
}

export function version() {
  return "2.29";
}

export function isNonGlibcLinuxSync() {
  return false;
}

export function isNonGlibcLinux() {
  return Promise.resolve(isNonGlibcLinuxSync());
}