install all sources

This commit is contained in:
Hugo Heuzard 2018-02-08 14:06:46 +00:00 committed by Rudi Grinberg
parent 4ed4cad3e5
commit dad2458879
2 changed files with 4 additions and 6 deletions

View File

@ -1008,12 +1008,9 @@ module Gen(P : Params) = struct
; if_ (native && Module.has_impl m)
[ Module.cm_file_unsafe m ~obj_dir Cmx ]
; List.filter_map Ml_kind.all ~f:(Module.cmt_file m ~obj_dir)
; [ let file =
match m.intf with
| Some f -> f
| None -> Option.value_exn m.impl
in
Path.relative dir file.name ]
; List.filter_map [m.intf;m.impl] ~f:(function
| None -> None
| Some f -> Some (Path.relative dir f.name))
])
; if_ byte [ lib_archive ~dir lib ~ext:".cma" ]
; if_ (Library.has_stubs lib) [ stubs_archive ~dir lib ]

View File

@ -22,6 +22,7 @@
"_build/install/default/lib/foo/foo.cmt"
"_build/install/default/lib/foo/foo.cmti"
"_build/install/default/lib/foo/foo.mli"
"_build/install/default/lib/foo/foo.ml"
"_build/install/default/lib/foo/foo.cma"
"_build/install/default/lib/foo/foo.cmxa"
"_build/install/default/lib/foo/foo.a"