This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
let () = X.M_2.print()
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
(melange.emit
|
||||
(target multilib)
|
||||
(modules c)
|
||||
(libraries x)
|
||||
(emit_stdlib false)
|
||||
(alias mel))
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
(lang dune 3.8)
|
||||
|
||||
(using melange 0.1)
|
||||
|
||||
(package
|
||||
(name x))
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
(library
|
||||
(name lib)
|
||||
(wrapped false)
|
||||
(modes melange))
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
let f() =
|
||||
()
|
||||
|
|
@ -0,0 +1 @@
|
|||
val f : unit -> unit
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
Compilation using melange with a library
|
||||
The rules should include cmjs of dependencies as well.
|
||||
|
||||
Make sure no byte folders are included.
|
||||
|
||||
$ dune rules multilib/x/m_2.js | tr -s '\n' ' ' |
|
||||
> grep -ce "byte"
|
||||
0
|
||||
[1]
|
||||
|
||||
Test resulting file
|
||||
|
||||
$ dune build @mel
|
||||
$ node ./_build/default/multilib/c.js
|
||||
done
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
(library
|
||||
(name x)
|
||||
(libraries lib)
|
||||
(modes melange))
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
let () =
|
||||
M_1.f();
|
||||
()
|
||||
|
||||
let print () = Js.log "done"
|
||||
|
|
@ -0,0 +1 @@
|
|||
val print : unit -> unit
|
||||
Loading…
Add table
Add a link
Reference in a new issue