Skip to content

Commit

Permalink
discover.ml: don't add flags for missing libraries
Browse files Browse the repository at this point in the history
This patch is a variant of the one in

  #761 (comment)

See #760, #761.
  • Loading branch information
olafhering authored and aantron committed Feb 23, 2020
1 parent 679f92c commit 0687bde
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/unix/config/discover.ml
Expand Up @@ -255,7 +255,7 @@ struct
["-I" ^ (path // "include")]
["-L" ^ (path // "lib"); "-l" ^ library]
with Not_found ->
extend [] ["-l" ^ library]
()

let ws2_32_lib context =
if Configurator.ocaml_config_var_exn context "os_type" = "Win32" then
Expand Down Expand Up @@ -398,8 +398,7 @@ struct
match result.stdout, result.exit_code with
| "true\n", 0 -> true
| "false\n", 0 -> false
| _, _ ->
failwith "OPAM exited with an error code, or isn't even installed."
| _, _ -> failwith "opam exited with an error code, or isn't installed."
in

let detect_esy_wants_libev () =
Expand Down

0 comments on commit 0687bde

Please sign in to comment.