dune: add an alias @libs that is buildable on 4.09

master
Thomas Refis 2019-08-28 14:36:07 +01:00 committed by Thomas Refis
parent f8493cd6ad
commit 98ea4cc633
3 changed files with 41 additions and 6 deletions

23
dune
View File

@ -112,7 +112,7 @@
symbol variable
;; middle_end/closure/
closure
closure closure_middle_end
;; middle_end/flambda/base_types/
closure_element closure_id closure_origin export_id id_types mutable_variable
@ -148,10 +148,10 @@
;; asmcomp/
afl_instrument arch asmgen asmlibrarian asmlink asmpackager branch_relaxation
branch_relaxation_intf cmm cmmgen cmmgen_state coloring comballoc CSE CSEgen
deadcode emit emitaux interf interval linearize linscan liveness mach
printcmm printlinear printmach proc reg reload reloadgen schedgen scheduling
selectgen selection spacetime_profiling spill split strmatch x86_ast
x86_dsl x86_gas x86_masm x86_proc
deadcode domainstate emit emitaux interf interval linearize linscan liveness
mach printcmm printlinear printmach proc reg reload reloadgen schedgen
scheduling selectgen selection spacetime_profiling spill split strmatch
x86_ast x86_dsl x86_gas x86_masm x86_proc
;; asmcomp/debug/
reg_availability_set compute_ranges_intf available_regs reg_with_debug_info
@ -206,3 +206,16 @@
toplevel/ocaml.byte
toplevel/expunge.exe
))
(alias
(name libs)
(deps
ocamloptcomp.cma
ocamlmiddleend.cma
ocamlcommon.cma
runtime/runtime.cma
stdlib/stdlib.cma
ocamlbytecomp.cma
ocamltest/ocamltest_core_and_plugin.cma
toplevel/ocamltoplevel.cma
))

View File

@ -33,7 +33,7 @@
io.c extern.c intern.c hash.c sys.c meta.c parsing.c gc_ctrl.c md5.c
obj.c lexing.c callback.c debugger.c weak.c compact.c finalise.c
custom.c dynlink.c spacetime_byt.c afl.c unix.c win32.c bigarray.c
main.c)
main.c memprof.c domain.c)
(action
(progn
(bash "touch .depend") ; hack.

View File

@ -19,3 +19,25 @@
../Makefile.config
config.mlp)
(action (system "make -f %{mk} %{targets}")))
(rule
(targets domainstate.ml)
(mode fallback)
(deps (:conf ../Makefile.config)
(:c domainstate.ml.c)
(:tbl ../runtime/caml/domain_state.tbl))
(action
(with-stdout-to %{targets}
(bash
"`grep '^CPP=' %{conf} | cut -d'=' -f2` -I ../runtime/caml %{c} %{tbl}"))))
(rule
(targets domainstate.mli)
(mode fallback)
(deps (:conf ../Makefile.config)
(:c domainstate.mli.c)
(:tbl ../runtime/caml/domain_state.tbl))
(action
(with-stdout-to %{targets}
(bash
"`grep '^CPP=' %{conf} | cut -d'=' -f2` -I ../runtime/caml %{c} %{tbl}"))))