From 7edcbcf55bddbe4dcc9ae752a89bdbb7dba6cf0d Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 12 Jan 2020 18:47:36 +0100 Subject: configure: allow options in --with-llvm-config. --- configure | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 3919c2d6d..442e6c638 100755 --- a/configure +++ b/configure @@ -255,7 +255,10 @@ fi # For llvm backend, check llvm-config if test $backend = llvm; then - llvm_version=`"$llvm_config" --version 2>/dev/null` + # No quotes for llvm_config, so that options (like --link-static) can be + # added. As a consequence, spaces in --with-llvm-config= are not allowed + # for the path. + llvm_version=`$llvm_config --version 2>/dev/null` if [ $? != 0 ]; then echo "cannot run $llvm_config" exit 1 -- cgit v1.2.3