@@ -81,29 +81,25 @@ BUILD_PROFILES = {
8181}
8282
8383BUILDS =
84- BUILD_SOURCES . keys . flat_map do |src |
85- %w[ wasm32-unknown-wasi wasm32-unknown-emscripten ] . flat_map do |target |
86- BUILD_PROFILES
87- . keys
88- . select do |profile_name |
89- if target == "wasm32-unknown-emscripten"
90- profile = BUILD_PROFILES [ profile_name ]
91- user_exts = profile [ :user_exts ]
92- # Skip builds with JS extensions or debug mode for Emscripten
93- # because JS extensions have incompatible import/export entries
94- # and debug mode is rarely used for Emscripten.
95- next (
96- !(
97- user_exts . include? ( "witapi" ) || user_exts . include? ( "js" ) ||
98- profile [ :debug ]
99- )
100- )
101- end
102- next true
103- end
104- . map { |profile | { src : src , target : target , profile : profile } }
84+ %w[ wasm32-unknown-wasi wasm32-unknown-emscripten ]
85+ . product ( BUILD_SOURCES . keys , BUILD_PROFILES . keys )
86+ . select do |target , _ , profile_name |
87+ if target == "wasm32-unknown-emscripten"
88+ profile = BUILD_PROFILES [ profile_name ]
89+ user_exts = profile [ :user_exts ]
90+ # Skip builds with JS extensions or debug mode for Emscripten
91+ # because JS extensions have incompatible import/export entries
92+ # and debug mode is rarely used for Emscripten.
93+ next (
94+ !(
95+ user_exts . include? ( "witapi" ) || user_exts . include? ( "js" ) ||
96+ profile [ :debug ]
97+ )
98+ )
99+ end
100+ next true
105101 end
106- end
102+ . map { | t , s , p | { src : s , target : t , profile : p } }
107103
108104NPM_PACKAGES = [
109105 {
0 commit comments