From f90329d2e831bd0b35bb83074b669c2f95d21e6e Mon Sep 17 00:00:00 2001 From: Craig Ferguson Date: Sun, 30 May 2021 21:33:47 +0100 Subject: [PATCH] Avoid spurious `ocamlfind` warning when not generating Graphics lib The `dune` file for the `js_of_ocaml` Graphics library is conditional on the availability of the `graphics` library, as determined by querying `ocamlfind`. This commit passes `-qe` to the OCamlfind query to avoid a redundant warning when `graphics` is not available: ``` $ dune build ocaml (internal) ocamlfind: Package `graphics' not found ``` (This warning is visible to all packages that vendor `js_of_ocaml`.) --- lib/lwt/graphics/dune | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lwt/graphics/dune b/lib/lwt/graphics/dune index 399903ba73..0f8bb13f3d 100644 --- a/lib/lwt/graphics/dune +++ b/lib/lwt/graphics/dune @@ -3,7 +3,7 @@ open Jbuild_plugin.V1 let graphics_exists = try - match run_and_read_lines "ocamlfind query -a-format -predicates byte graphics" with + match run_and_read_lines "ocamlfind query -a-format -predicates byte graphics -qe" with | path :: _ -> Sys.file_exists path | _ -> false with _ -> false