Skip to content

Commit fa8b209

Browse files
authored
fix(compiler): Fix dependency compilation of wasi polyfill (#1563)
1 parent 6c46015 commit fa8b209

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,5 @@ jobs:
101101
- name: Run NEAR smoketest
102102
if: matrix.os != 'windows-latest'
103103
run: |
104+
npm run stdlib clean
104105
npm run cli test

compiler/src/compile.re

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,13 @@ let compile_wasi_polyfill = () => {
276276
cstate_filename: Some(file),
277277
cstate_outfile: Some(default_output_filename(file)),
278278
};
279-
ignore(compile_resume(~hook=stop_after_object_file_emitted, cstate));
279+
ignore(
280+
compile_resume(
281+
~is_root_file=true,
282+
~hook=stop_after_object_file_emitted,
283+
cstate,
284+
),
285+
);
280286
})
281287
| None => ()
282288
};

0 commit comments

Comments
 (0)