Skip to content

Commit 47c1fce

Browse files
Reduce the number of builds
1 parent 91a692e commit 47c1fce

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

Rakefile

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ BUILD_PROFILES = {
6161
default_exts: FULL_EXTS,
6262
user_exts: []
6363
},
64-
"full-js" => {
65-
debug: false,
66-
default_exts: FULL_EXTS,
67-
user_exts: %w[js witapi]
68-
},
6964
"full-js-debug" => {
7065
debug: true,
7166
default_exts: FULL_EXTS,
@@ -78,17 +73,9 @@ BUILDS =
7873
.product(BUILD_SOURCES.keys, BUILD_PROFILES.keys)
7974
.select do |target, _, profile_name|
8075
if target == "wasm32-unknown-emscripten"
81-
profile = BUILD_PROFILES[profile_name]
82-
user_exts = profile[:user_exts]
83-
# Skip builds with JS extensions or debug mode for Emscripten
84-
# because JS extensions have incompatible import/export entries
85-
# and debug mode is rarely used for Emscripten.
86-
next(
87-
!(
88-
user_exts.include?("witapi") || user_exts.include?("js") ||
89-
profile[:debug]
90-
)
91-
)
76+
# Builds only full for Emscripten since minimal, js, debug
77+
# builds are rarely used with Emscripten.
78+
next profile_name == "full"
9279
end
9380
next true
9481
end

0 commit comments

Comments
 (0)