UNPKG

makam

Version:

The Makam metalanguage -- a tool for rapid language prototyping

24 lines (18 loc) 630 B
// const path = require("path"); const binaryName = process.platform === "linux" && process.arch === "x64" ? "makam-bin-linux64" : process.platform === "darwin" ? "makam-bin-darwin64" : null; if (!binaryName) throw new Error("Platform " + process.platform + " not supported"); const binaryPath = path.join(__dirname, "..", binaryName); const stdlibPath = path.join(__dirname, ".."); const stdlibCachePath = path.join(__dirname, "..", "stdlib-cache"); const defaultArguments = ["-I", stdlibPath, "-I", stdlibCachePath]; module.exports = { defaultArguments, binaryPath, stdlibPath, stdlibCachePath };