summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-02-13 00:20:19 +0000
committerrubidium <rubidium@openttd.org>2010-02-13 00:20:19 +0000
commit077c751201ece67a3d0f063f7be83e386b0037f7 (patch)
tree14bf19ff879400693622bf66bb41b5e784e98810
parent0c6be84ccf34ab08a6a7a19154c624053ec375ce (diff)
downloadopenttd-077c751201ece67a3d0f063f7be83e386b0037f7.tar.xz
(svn r19116) -Fix [FS#3615]: enabling ccache via environment variables failed to properly detect/set a compiler
-rw-r--r--config.lib10
1 files changed, 5 insertions, 5 deletions
diff --git a/config.lib b/config.lib
index 1574d1adc..20f721a3c 100644
--- a/config.lib
+++ b/config.lib
@@ -1649,7 +1649,7 @@ check_compiler() {
fi
machine=`eval $compiler $9 2>/dev/null`
ret=$?
- eval "$2=$compiler"
+ eval "$2=\"$compiler\""
log 2 "executing $compiler $9"
log 2 " returned $machine"
@@ -1670,7 +1670,7 @@ check_compiler() {
# Check for manual compiler
machine=`$4 $9 2>/dev/null`
ret=$?
- eval "$2=$4"
+ eval "$2=\"$4\""
log 2 "executing $4 $9"
log 2 " returned $machine"
@@ -1687,7 +1687,7 @@ check_compiler() {
if [ -n "$5" ]; then
machine=`$5 $9 2>/dev/null`
ret=$?
- eval "$2=$5"
+ eval "$2=\"$5\""
log 2 "executing $5 $9"
log 2 " returned $machine"
@@ -1706,7 +1706,7 @@ check_compiler() {
# No $5, so try '$6'
machine=`$6 $9 2>/dev/null`
ret=$?
- eval "$2=$6"
+ eval "$2=\"$6\""
log 2 "executing $6 $9"
log 2 " returned $machine"
@@ -1716,7 +1716,7 @@ check_compiler() {
# Maybe '$7'?
machine=`$7 $9 2>/dev/null`
ret=$?
- eval "$2=$7"
+ eval "$2=\"$7\""
log 2 "executing $7 $9"
log 2 " returned $machine"