This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,27 @@
|
|||
This test demonstrates a bug in dune's separation compilation of jsoo.
|
||||
std_exit.cmo wasn't being linked in the end, which was causing at_exit hooks not
|
||||
being ran and channels not being flushed.
|
||||
|
||||
Setup fixtures:
|
||||
|
||||
$ echo "(lang dune 2.6)" > dune-project
|
||||
$ echo 'let () = print_string "bla"' > main.ml
|
||||
$ cat >dune <<EOF
|
||||
> (executable
|
||||
> (name main)
|
||||
> (modes js))
|
||||
> EOF
|
||||
|
||||
Test without separate compilation:
|
||||
|
||||
$ dune build --profile=release ./main.bc.js
|
||||
$ node _build/default/main.bc.js
|
||||
bla
|
||||
|
||||
Test with separate compilation:
|
||||
|
||||
$ dune build --profile=dev ./main.bc.js
|
||||
$ node _build/default/main.bc.js
|
||||
bla
|
||||
|
||||
The result should be the same
|
||||
Loading…
Add table
Add a link
Reference in a new issue