@@ -23,20 +23,20 @@ def get_binaryen_root(repository_ctx):
23
23
"""
24
24
if repository_ctx .os .name .startswith ('linux' ):
25
25
if 'amd64' in repository_ctx .os .arch or 'x86_64' in repository_ctx .os .arch :
26
- return repository_ctx .path (Label ("@emscripten_bin_linux//:emscripten_config " )).dirname
26
+ return repository_ctx .path (Label ("@emscripten_bin_linux//:BUILD.bazel " )).dirname
27
27
elif 'aarch64' in repository_ctx .os .arch :
28
- return repository_ctx .path (Label ("@emscripten_bin_linux_arm64//:emscripten_config " )).dirname
28
+ return repository_ctx .path (Label ("@emscripten_bin_linux_arm64//:BUILD.bazel " )).dirname
29
29
else :
30
30
fail ('Unsupported architecture for Linux' )
31
31
elif repository_ctx .os .name .startswith ('mac' ):
32
32
if 'amd64' in repository_ctx .os .arch or 'x86_64' in repository_ctx .os .arch :
33
- return repository_ctx .path (Label ("@emscripten_bin_mac//:emscripten_config " )).dirname
33
+ return repository_ctx .path (Label ("@emscripten_bin_mac//:BUILD.bazel " )).dirname
34
34
elif 'aarch64' in repository_ctx .os .arch :
35
- return repository_ctx .path (Label ("@emscripten_bin_mac_arm64//:emscripten_config " )).dirname
35
+ return repository_ctx .path (Label ("@emscripten_bin_mac_arm64//:BUILD.bazel " )).dirname
36
36
else :
37
37
fail ('Unsupported architecture for MacOS' )
38
38
elif repository_ctx .os .name .startswith ('windows' ):
39
- return repository_ctx .path (Label ("@emscripten_bin_win//:emscripten_config " )).dirname
39
+ return repository_ctx .path (Label ("@emscripten_bin_win//:BUILD.bazel " )).dirname
40
40
else :
41
41
fail ('Unsupported operating system' )
42
42
@@ -54,7 +54,7 @@ def _emscripten_cache_impl(repository_ctx):
54
54
emscripten_root = binaryen_root .get_child ("emscripten" )
55
55
embuilder_path = emscripten_root .get_child ("embuilder" )
56
56
cache_path = repository_ctx .path ('cache' )
57
- nodejs = repository_ctx .path (Label ("@nodejs//:node_files " )).dirname .get_child ("bin/ node" )
57
+ nodejs = repository_ctx .path (Label ("@nodejs//:BUILD.bazel " )).dirname .get_child ("bin" ). get_child ( " node" )
58
58
# Create configuration file
59
59
embuilder_config_content = "NODE_JS = '{}'\n " .format (nodejs )
60
60
embuilder_config_content += "LLVM_ROOT = '{}'\n " .format (llvm_root )
0 commit comments