mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 20:28:02 +00:00
test_gen: get wasm linking test working with DCE
This commit is contained in:
parent
0b0c54d676
commit
66a7955475
1 changed files with 4 additions and 1 deletions
|
@ -37,7 +37,10 @@ pub fn main() !void {
|
|||
const host = host_called_directly_from_main();
|
||||
const js = js_called_directly_from_main();
|
||||
const app = roc__app_proc_1_exposed();
|
||||
host_result = host | js | app;
|
||||
|
||||
// Make sure read_host_result is not eliminated! We know it's zero.
|
||||
const avoid_dead_code_elim = read_host_result();
|
||||
host_result = host | js | app | avoid_dead_code_elim;
|
||||
|
||||
if (@import("builtin").target.cpu.arch != .wasm32) {
|
||||
const stdout = @import("std").io.getStdOut().writer();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue