Skip to content

Commit

Permalink
Esy compatibility for libev detection (#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro authored and aantron committed Apr 1, 2019
1 parent 5598c66 commit 2abdcd1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/unix/config/configure.ml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@ let main () =
match input_line ch with
|"true" -> use_libev := Some true
|_ -> use_libev := Some false
with _ -> use_libev := Some false
with _ ->
(* Esy users won't have opam installed in the esy sandbox. *)
match Sys.getenv "LIBEV_CFLAGS", Sys.getenv "LIBEV_LIBS" with
| "", "" ->
use_libev := Some false
| exception Not_found ->
use_libev := Some false
| _flags, _libs -> ()
end
| _ ->
()
Expand Down

0 comments on commit 2abdcd1

Please sign in to comment.