File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -83,9 +83,20 @@ BUILD_PROFILES = {
83
83
BUILDS =
84
84
BUILD_SOURCES . keys . flat_map do |src |
85
85
%w[ wasm32-unknown-wasi wasm32-unknown-emscripten ] . flat_map do |target |
86
- BUILD_PROFILES . keys . map do |profile |
87
- { src : src , target : target , profile : profile }
88
- end
86
+ BUILD_PROFILES
87
+ . keys
88
+ . filter 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 !( user_exts . include? ( "witapi" ) || user_exts . include? ( "js" ) || profile [ :debug ] )
96
+ end
97
+ next true
98
+ end
99
+ . map { |profile | { src : src , target : target , profile : profile } }
89
100
end
90
101
end
91
102
You can’t perform that action at this time.
0 commit comments