* Add linux/arm64 support to bazel rules * Make linux arm64 sha optional and PR feedback Not all releases have linux shas. Use getattr to default to no sha if none was present. This way non linux arm64 builds should not fail. * Update linux arm64 sha for 3.1.33 This is the latest arm64 release according to #1204. There do not seem to be a any releases between .21 and .33.
24 lines
980 B
Plaintext
24 lines
980 B
Plaintext
import os
|
|
import platform
|
|
|
|
ROOT_DIR = os.environ["ROOT_DIR"]
|
|
EMSCRIPTEN_ROOT = os.environ["EMSCRIPTEN"]
|
|
BINARYEN_ROOT = os.path.join(ROOT_DIR, os.environ["EM_BIN_PATH"])
|
|
LLVM_ROOT = os.path.join(BINARYEN_ROOT, "bin")
|
|
FROZEN_CACHE = True
|
|
|
|
system = platform.system()
|
|
|
|
machine = "arm64" if platform.machine() in ('arm64', 'aarch64') else "amd64"
|
|
nodejs_binary = "bin/nodejs/node.exe" if(system =="Windows") else "bin/node"
|
|
NODE_JS = ROOT_DIR + "/external/nodejs_{}_{}/{}".format(system.lower(), machine, nodejs_binary)
|
|
|
|
|
|
# This works around an issue with Bazel RBE where the symlinks in node_modules/.bin
|
|
# are uploaded as the linked files, which means the cli.js cannot load its
|
|
# dependencies from the expected locations.
|
|
# See https://github.com/emscripten-core/emscripten/pull/16640 for more
|
|
if system != "Windows":
|
|
CLOSURE_COMPILER = [NODE_JS, os.path.join(EMSCRIPTEN_ROOT, "node_modules",
|
|
"google-closure-compiler", "cli.js")]
|