Skip to content

Commit eef8075

Browse files
committed
Disable --split-linked-modules in cli-support
1 parent 4c9c190 commit eef8075

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
test_wasm_bindgen:
4242
name: "Run wasm-bindgen crate tests (unix)"
4343
runs-on: ubuntu-latest
44+
env:
45+
WASM_BINDGEN_SPLIT_LINKED_MODULES: 1
4446
steps:
4547
- uses: actions/checkout@v2
4648
- run: rustup update --no-self-update stable && rustup default stable

crates/cli-support/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl Bindgen {
121121
wasm_interface_types,
122122
encode_into: EncodeInto::Test,
123123
omit_default_module_path: true,
124-
split_linked_modules: true,
124+
split_linked_modules: false,
125125
}
126126
}
127127

crates/cli/src/bin/wasm-bindgen-test-runner/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ integration test.\
167167
TestMode::NoModule => b.no_modules(true)?,
168168
};
169169

170+
if std::env::var("WASM_BINDGEN_SPLIT_LINKED_MODULES").is_ok() {
171+
b.split_linked_modules(true);
172+
}
173+
170174
b.debug(debug)
171175
.input_module(module, wasm)
172176
.keep_debug(false)

0 commit comments

Comments
 (0)