UNPKG

cmake-ts

Version:

cmake-js rewrite in typescript to support advanced build configurations

16 lines (14 loc) 320 B
import fs from "fs" export function detectLibc(os: typeof process.platform) { if (os === "linux") { if (fs.existsSync("/etc/alpine-release")) { return "musl" } return "glibc" } else if (os === "darwin") { return "libc" } else if (os === "win32") { return "msvc" } return "unknown" }