-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Jsoo rules bug: artifacts of libraries with public names are not …
…found (#6828) Signed-off-by: Nicolás Ojeda Bär <n.oje.bar@gmail.com> Signed-off-by: Hugo Heuzard <hugo.heuzard@gmail.com> Co-authored-by: Hugo Heuzard <hugo.heuzard@gmail.com>
- Loading branch information
Showing
8 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
let x = 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(library | ||
(public_name foo.a) | ||
(name a)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
(executable | ||
(name main) | ||
(libraries a) | ||
(modes js)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
let _ = A.x |
3 changes: 3 additions & 0 deletions
3
test/blackbox-tests/test-cases/jsoo/public-libs.t/dune-project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(lang dune 3.7) | ||
|
||
(package (name foo)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Compilation of libraries with pulic-names | ||
|
||
$ dune build --display short | ||
ocamlc a/.a.objs/byte/a.{cmi,cmo,cmt} | ||
js_of_ocaml b/.main.eobjs/jsoo/main.bc.runtime.js | ||
js_of_ocaml .js/default/stdlib/std_exit.cmo.js | ||
js_of_ocaml .js/default/stdlib/stdlib.cma.js | ||
ocamlopt a/.a.objs/native/a.{cmx,o} | ||
ocamlc b/.main.eobjs/byte/dune__exe__Main.{cmi,cmti} | ||
ocamlc a/a.cma | ||
ocamlopt a/a.{a,cmxa} | ||
ocamlc b/.main.eobjs/byte/dune__exe__Main.{cmo,cmt} | ||
js_of_ocaml a/.a.objs/jsoo/default/a.cma.js | ||
ocamlopt a/a.cmxs | ||
ocamlc b/main.bc-for-jsoo | ||
js_of_ocaml b/.main.eobjs/jsoo/dune__exe__Main.cmo.js | ||
js_of_ocaml b/main.bc.js |