@@ -33,7 +33,8 @@ def get_root_and_script_ext(repository_ctx):
33
33
else :
34
34
fail ('Unsupported architecture for MacOS' )
35
35
elif repository_ctx .os .name .startswith ('windows' ):
36
- return (repository_ctx .path (Label ("@emscripten_bin_win//:BUILD.bazel" )).dirname , '.bat' )
36
+ fail ('Using a secondary cache is not supported on Windows' )
37
+ #return (repository_ctx.path(Label("@emscripten_bin_win//:BUILD.bazel")).dirname, '.bat')
37
38
else :
38
39
fail ('Unsupported operating system' )
39
40
@@ -73,35 +74,10 @@ def _emscripten_cache_impl(repository_ctx):
73
74
embuilder_args = [embuilder_path ] + flags + ["build" ] + libraries
74
75
# Run embuilder
75
76
repository_ctx .report_progress ("Building secondary cache" )
76
- result = repository_ctx .execute (embuilder_args , quiet = False )
77
+ result = repository_ctx .execute (embuilder_args , quiet = True )
77
78
if result .return_code != 0 :
78
- ### TEST
79
-
80
- cwd = external_root
81
- dir_result = repository_ctx .execute (['dir' ], quiet = False , working_directory = str (cwd ))
82
- print ('dir_result(external_root).return_code = {}\n \n ' .format (dir_result .return_code ))
83
- print ('dir_result(external_root).stderr = {}\n \n ' .format (dir_result .stderr ))
84
- print ('dir_result(external_root).stdout = {}\n \n ' .format (dir_result .stdout ))
85
-
86
- cwd = cwd .get_child ('nodejs_windows_amd64' )
87
- dir_result = repository_ctx .execute (['dir' ], quiet = False , working_directory = str (cwd ))
88
- print ('dir_result(nodejs_windows_amd64).return_code = {}\n \n ' .format (dir_result .return_code ))
89
- print ('dir_result(nodejs_windows_amd64).stderr = {}\n \n ' .format (dir_result .stderr ))
90
- print ('dir_result(nodejs_windows_amd64).stdout = {}\n \n ' .format (dir_result .stdout ))
91
-
92
- cwd = cwd .get_child ('bin' )
93
- dir_result = repository_ctx .execute (['dir' ], quiet = False , working_directory = str (cwd ))
94
- print ('dir_result(bin).return_code = {}\n \n ' .format (dir_result .return_code ))
95
- print ('dir_result(bin).stderr = {}\n \n ' .format (dir_result .stderr ))
96
- print ('dir_result(bin).stdout = {}\n \n ' .format (dir_result .stdout ))
97
-
98
- cwd = cwd .get_child ('nodejs' )
99
- dir_result = repository_ctx .execute (['dir' ], quiet = False , working_directory = str (cwd ))
100
- print ('dir_result(nodejs).return_code = {}\n \n ' .format (dir_result .return_code ))
101
- print ('dir_result(nodejs).stderr = {}\n \n ' .format (dir_result .stderr ))
102
- print ('dir_result(nodejs).stdout = {}\n \n ' .format (dir_result .stdout ))
103
-
104
- ### TEST
79
+ # Windows fails here because external/nodejs_windows_amd64/bin/nodejs/node.exe
80
+ # does not exist at this point (while the equivalent on Linux and MacOS does)
105
81
fail ("Embuilder exited with a non-zero return code" )
106
82
# Override Emscripten's cache with the secondary cache
107
83
default_config += "CACHE = '{}'\n " .format (cache )
0 commit comments