about summary refs log tree commit diff homepage
path: root/Makefile.config.in
diff options
context:
space:
mode:
authorDan Liew <daniel.liew@imperial.ac.uk>2015-04-08 23:29:10 +0100
committerDan Liew <daniel.liew@imperial.ac.uk>2015-04-08 23:29:10 +0100
commitb41cf33b6b726fd97e502c5c4818f5feeea0284b (patch)
tree8c9717c37240d8c95648a9082df3c1ed73619fd4 /Makefile.config.in
parentb0c1d7291bbedf505529c648bc6c8b59cbef0544 (diff)
downloadklee-b41cf33b6b726fd97e502c5c4818f5feeea0284b.tar.gz
Fix very annoying issue where KLEE's configure would completly
ignore the C++ compiler detected and just use the compiler detected
during the LLVM configure.
Diffstat (limited to 'Makefile.config.in')
-rw-r--r--Makefile.config.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.config.in b/Makefile.config.in
index ee95c4e5..efedd505 100644
--- a/Makefile.config.in
+++ b/Makefile.config.in
@@ -65,6 +65,11 @@ endif
 # disable unwind test
 TEST_FEATURE_LIST += no-unwind
 
+# Deliberately override the host compiler
+# so that we use what was detected when KLEE was configured
+# and not LLVM.
+CC := @KLEE_HOST_C_COMPILER@
+CXX := @KLEE_HOST_CXX_COMPILER@
 CFLAGS := @CFLAGS@ -Wall -g
 CXXFLAGS := @CXXFLAGS@ -g -Wall
 LDFLAGS := @LDFLAGS@ -g