@@ -8,9 +8,9 @@ def get_binaryen_root(repository_ctx):
8
8
Retrieve the path to the Emscripten binary directory
9
9
10
10
This function determines the correct Emscripten binary directory path by
11
- examining the operating system (OS) and architecture (arch) of the
12
- environment. It supports Linux, macOS, and Windows operating systems with
13
- specific architectures.
11
+ examining the operating system and architecture of the environment. It
12
+ supports Linux, macOS, and Windows operating systems with specific
13
+ architectures.
14
14
15
15
Args:
16
16
repository_ctx: The repository context object which provides information
@@ -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//:all " )).dirname
26
+ return repository_ctx .path (Label ("@emscripten_bin_linux//:emscripten_config " )).dirname
27
27
elif 'aarch64' in repository_ctx .os .arch :
28
- return repository_ctx .path (Label ("@emscripten_bin_linux_arm64//:all " )).dirname
28
+ return repository_ctx .path (Label ("@emscripten_bin_linux_arm64//:emscripten_config " )).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//:all " )).dirname
33
+ return repository_ctx .path (Label ("@emscripten_bin_mac//:emscripten_config " )).dirname
34
34
elif 'aarch64' in repository_ctx .os .arch :
35
- return repository_ctx .path (Label ("@emscripten_bin_mac_arm64//:all " )).dirname
35
+ return repository_ctx .path (Label ("@emscripten_bin_mac_arm64//:emscripten_config " )).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//:all " )).dirname
39
+ return repository_ctx .path (Label ("@emscripten_bin_win//:emscripten_config " )).dirname
40
40
else :
41
41
fail ('Unsupported operating system' )
42
42
@@ -73,7 +73,7 @@ def _emscripten_cache_impl(repository_ctx):
73
73
embuilder_args = [embuilder_path ] + flags + ["build" ] + libraries
74
74
# Run embuilder
75
75
repository_ctx .report_progress ("Building secondary cache" )
76
- result = repository_ctx .execute (embuilder_args , quiet = True )
76
+ result = repository_ctx .execute (embuilder_args , quiet = False )
77
77
if result .return_code != 0 :
78
78
fail ("Embuilder exited with a non-zero return code" )
79
79
# Override Emscripten's cache with the secondary cache
0 commit comments