Skip to content

Commit bba3aa9

Browse files
include node modules glob with linker files. also some minor formatting fixes. (#1052)
1 parent 93f21c9 commit bba3aa9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

bazel/emscripten_deps.bzl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2-
load("@build_bazel_rules_nodejs//:index.bzl", "npm_install", "node_repositories")
2+
load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "npm_install")
33
load(":revisions.bzl", "EMSCRIPTEN_TAGS")
44

55
def _parse_version(v):
@@ -40,7 +40,7 @@ filegroup(
4040
"bin/wasm-emscripten-finalize{bin_extension}",
4141
"bin/wasm-ld{bin_extension}",
4242
"bin/wasm-opt{bin_extension}",
43-
],
43+
] + glob(["emscripten/node_modules/**"]),
4444
)
4545
4646
filegroup(
@@ -83,7 +83,7 @@ def emscripten_deps(emscripten_version = "latest"):
8383
strip_prefix = "install",
8484
url = emscripten_url.format("linux", revision.hash, "", "tbz2"),
8585
sha256 = revision.sha_linux,
86-
build_file_content = BUILD_FILE_CONTENT_TEMPLATE.format(bin_extension=""),
86+
build_file_content = BUILD_FILE_CONTENT_TEMPLATE.format(bin_extension = ""),
8787
type = "tar.bz2",
8888
)
8989

@@ -93,7 +93,7 @@ def emscripten_deps(emscripten_version = "latest"):
9393
strip_prefix = "install",
9494
url = emscripten_url.format("mac", revision.hash, "", "tbz2"),
9595
sha256 = revision.sha_mac,
96-
build_file_content = BUILD_FILE_CONTENT_TEMPLATE.format(bin_extension=""),
96+
build_file_content = BUILD_FILE_CONTENT_TEMPLATE.format(bin_extension = ""),
9797
type = "tar.bz2",
9898
)
9999

@@ -103,7 +103,7 @@ def emscripten_deps(emscripten_version = "latest"):
103103
strip_prefix = "install",
104104
url = emscripten_url.format("mac", revision.hash, "-arm64", "tbz2"),
105105
sha256 = revision.sha_mac_arm64,
106-
build_file_content = BUILD_FILE_CONTENT_TEMPLATE.format(bin_extension=""),
106+
build_file_content = BUILD_FILE_CONTENT_TEMPLATE.format(bin_extension = ""),
107107
type = "tar.bz2",
108108
)
109109

@@ -113,7 +113,7 @@ def emscripten_deps(emscripten_version = "latest"):
113113
strip_prefix = "install",
114114
url = emscripten_url.format("win", revision.hash, "", "zip"),
115115
sha256 = revision.sha_win,
116-
build_file_content = BUILD_FILE_CONTENT_TEMPLATE.format(bin_extension=".exe"),
116+
build_file_content = BUILD_FILE_CONTENT_TEMPLATE.format(bin_extension = ".exe"),
117117
type = "zip",
118118
)
119119

0 commit comments

Comments
 (0)