From ce3463fa95f6d2b1c17a52f2726f85b1c66529dc Mon Sep 17 00:00:00 2001 From: malc Date: Fri, 22 Mar 2019 20:17:23 +0300 Subject: [PATCH] Quote LLPP_CC value To allow for 'ccache gcc' for instance. Interestingly enough LLPP_CC='ccache gcc' actually does not work (while clang does) due to strict aliasing violation in GPA, it does work with plain ocamlc because bytecomp|native_c_compiler command line includes -fno-strict-aliasing. --- build.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.bash b/build.bash index e78d17c..5983bc7 100755 --- a/build.bash +++ b/build.bash @@ -194,7 +194,7 @@ bocaml() ( bocamlc() { local o=$outd/$1 local s=$srcd/${1%.o}.c - local cc=${LLPP_CC:+-cc $LLPP_CC } + local cc=${LLPP_CC:+-cc \"$LLPP_CC\" } local cmd="ocamlc $cc-ccopt \"$(cflags $o) -MMD -MF $o.dep -MT_ -o $o\" $s" test -r $o.dep && read _ d <$o.dep || d= local keycmd='digest $o $d' -- 2.11.4.GIT