# smol-emscripten's config. Every path is relative to this file, so the
# toolchain works wherever it's unpacked. The cache holds the headers a side
# module compiles against, installed once and frozen: nothing writes to it,
# so builds run side by side, and emcc skips its sanity checks.
import os

_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

LLVM_ROOT = os.path.join(_ROOT, "bin")
BINARYEN_ROOT = _ROOT
if os.name == "nt":
    NODE_JS = os.path.join(_ROOT, "node", "node.exe")
else:
    NODE_JS = os.path.join(_ROOT, "node", "bin", "node")
CACHE = os.path.join(_ROOT, "emscripten", "cache")
FROZEN_CACHE = True
