From f523799b609ebbda1b03df55028f2d98bfcffc52 Mon Sep 17 00:00:00 2001 From: Gerd Stolpmann Date: Sun, 10 Dec 2017 11:51:08 +0100 Subject: [PATCH] fix: configuration of C compiler for the case that "ocamlc -config" prints several words for "c_compiler" --- lib/build/OCaml.om | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/build/OCaml.om b/lib/build/OCaml.om index 8d00490..8fa3a6b 100644 --- lib/build/OCaml.om +++ lib/build/OCaml.om @@ -181,7 +181,7 @@ private.get_bytecomp_c_comp() = # Figure out the params for the C compiler # private.c_comp = $(get_c_comp) - if $(equal X$(c_comp)X, XX) + if $(equal X$(string $(c_comp))X, XX) private.bytecomp_c_comp = $(get_bytecomp_c_comp) OCAML_CC = $(nth-hd 1, $(bytecomp_c_comp)) OCAML_CFLAGS = $(nth-tl 1, $(bytecomp_c_comp))