This change comes with fairly major change to the bazel toolchain. - Use pre-built cache that comes with emsdk - Mark cache as readonly using FROZEN_CACHE - Pass `--sysroot` to match upstream emscripten change
13 lines
408 B
Plaintext
13 lines
408 B
Plaintext
import os
|
|
import platform
|
|
|
|
ROOT_DIR = os.environ["ROOT_DIR"]
|
|
EMSCRIPTEN_ROOT = os.environ["EMSCRIPTEN"]
|
|
LLVM_ROOT = ROOT_DIR + "/external/emscripten/bin"
|
|
BINARYEN_ROOT = ROOT_DIR + "/external/emscripten"
|
|
FROZEN_CACHE = True
|
|
|
|
system = platform.system()
|
|
nodejs_binary = "node.exe" if(system =="Windows") else "bin/node"
|
|
NODE_JS = ROOT_DIR + "/external/nodejs_{}_amd64/{}".format(system.lower(), nodejs_binary)
|