Commits

Sebastien Mondet  committed 6a4152f

build: fix build (threads and lwt.preemptive)

While the fix of the bug in Lwt [329][Lwt#329] is not shipped in an
official release, the implementation of the `System` module depends on
`lwt.preemptive` and hence on a *POSIX threads* implementation.

[Lwt#329]: https://ocsigen.org/trac/ticket/329

  • Participants
  • Parent commits 8593035

Comments (0)

Files changed (2)

 archive(native) = "pvem_lwt_unix.cmxa"
 archive(native, plugin) = "pvem_lwt_unix.cmxs"
 exists_if = "pvem_lwt_unix.cma"
-requires = "pvem unix lwt.unix"
+requires = "pvem unix threads lwt.preemptive lwt.unix"
 
       chain [
         "pwd";
         "cp ../pvem_lwt_unix.ml .";
-        "ocamlfind ocamlc -package pvem,unix,lwt.unix -c pvem_lwt_unix.ml -o pvem_lwt_unix.cmo";
-        "ocamlfind ocamlopt -package pvem,unix,lwt.unix -c pvem_lwt_unix.ml  -annot -bin-annot -o pvem_lwt_unix.cmx";
+        "ocamlfind ocamlc -package pvem,unix,threads,lwt.preemptive,lwt.unix -thread -c pvem_lwt_unix.ml -o pvem_lwt_unix.cmo";
+        "ocamlfind ocamlopt -package pvem,unix,threads,lwt.preemptive,lwt.unix -thread -c pvem_lwt_unix.ml  -annot -bin-annot -o pvem_lwt_unix.cmx";
         "ocamlc pvem_lwt_unix.cmo -a -o pvem_lwt_unix.cma";
         "ocamlopt pvem_lwt_unix.cmx -a -o pvem_lwt_unix.cmxa";
         "ocamlopt pvem_lwt_unix.cmxa pvem_lwt_unix.a -shared -o pvem_lwt_unix.cmxs";
     in_build_directory (fun () ->
         chain [
           "mkdir -p doc";
-                       sprintf "ocamlfind ocamldoc -package pvem,unix,lwt.unix -charset UTF-8 -keep-code -colorize-code -html pvem_lwt_unix.ml -d doc/";
+                       sprintf "ocamlfind ocamldoc -package pvem,unix,threads,lwt.preemptive,lwt.unix -thread -charset UTF-8 -keep-code -colorize-code -html pvem_lwt_unix.ml -d doc/";
         ])
 
 let name = "pvem_lwt_unix"