Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions luv.opam
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ depends: [
"odoc" {with-doc & = "2.4.0"}
]

depopts: [
"conf-libuv"
]

build-env: [
[LUV_USE_SYSTEM_LIBUV_DEFAULT = "%{conf-libuv:installed?yes:no}%"]
]

build: [
["dune" "build" "-p" name "-j" jobs]
]
Expand Down
6 changes: 5 additions & 1 deletion src/c/dune
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ let foreign_archives, uv_library_flag, include_dirs, i_option, install_h =
match Sys.getenv "LUV_USE_SYSTEM_LIBUV" with
| "yes" -> true
| _ -> false
| exception Not_found -> false
| exception Not_found ->
match Sys.getenv "LUV_USE_SYSTEM_LIBUV_DEFAULT" with
| "yes" -> true
| _ -> false
| exception Not_found -> false
in

if use_system_libuv then
Expand Down