Skip to content

Commit

Permalink
Always use libev if detected
Browse files Browse the repository at this point in the history
Part of #601.
  • Loading branch information
aantron committed Apr 1, 2020
1 parent ee466e2 commit e9a9c7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,6 @@ matrix:

fast_finish: true

env:
global:
- LWT_FORCE_LIBEV_BY_DEFAULT=yes

notifications:
email:
on_success: always
Expand Down
21 changes: 5 additions & 16 deletions src/unix/config/discover.ml
Original file line number Diff line number Diff line change
Expand Up @@ -850,22 +850,11 @@ let () =

(* Write lwt_features.ml. *)
let libev_default =
try
Sys.getenv "LWT_FORCE_LIBEV_BY_DEFAULT" = "yes"
with Not_found ->
match !Arguments.libev_default with
| Some argument ->
argument
| None ->
match Configurator.ocaml_config_var_exn context "system" with
| "linux"
| "linux_elf"
| "linux_aout"
| "linux_eabi"
| "linux_eabihf" ->
true
| _ ->
false
match !Arguments.libev_default with
| Some argument ->
argument
| None ->
true
in
Output.write_ml_file
~extra:[
Expand Down

0 comments on commit e9a9c7b

Please sign in to comment.