summaryrefslogtreecommitdiff
path: root/qmake
authoreilers <eilers>2004-12-20 16:04:15 (UTC)
committer eilers <eilers>2004-12-20 16:04:15 (UTC)
commite35c9d95f2b1609798529e527282e145b370f505 (patch) (side-by-side diff)
tree146eccb4081dda79e435603fef1c2927678cefe2 /qmake
parent68ae26d1e6368ec73acf11d09067820fc882f402 (diff)
downloadopie-e35c9d95f2b1609798529e527282e145b370f505.zip
opie-e35c9d95f2b1609798529e527282e145b370f505.tar.gz
opie-e35c9d95f2b1609798529e527282e145b370f505.tar.bz2
The "which" command on darwin always returns a string as output, even if
nothing was found. Therefore we have to disable this "which" if ccache is not available!
Diffstat (limited to 'qmake') (more/less context) (show whitespace changes)
-rw-r--r--qmake/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/qmake/Makefile b/qmake/Makefile
index 3045766..1054da4 100644
--- a/qmake/Makefile
+++ b/qmake/Makefile
@@ -1,7 +1,14 @@
QMAKESPECSDIR=$(OPIEDIR)/mkspecs
+include ../.config
+
+ifeq ($(strip $(CONFIG_USE_CCACHE)),y)
CC = $(shell which ccache) gcc
CXX = $(shell which ccache) g++
+else
+CC = gcc
+CXX = g++
+endif
#qmake code
OBJS=project.o property.o main.o makefile.o unixmake2.o unixmake.o msvc_nmake.o \