about summary refs log tree commit diff homepage
path: root/Makefile.common
diff options
context:
space:
mode:
authorDan Liew <daniel.liew@imperial.ac.uk>2015-04-25 19:48:22 +0100
committerDan Liew <daniel.liew@imperial.ac.uk>2015-04-25 20:21:20 +0100
commit91f389ab46fb29656600a11a373a54ddf896d821 (patch)
tree24962f80c49c634c73ee3a71c9dcabba8834c3ab /Makefile.common
parent47b4608a033a6b6c05f8798ab675baa120d15a7f (diff)
downloadklee-91f389ab46fb29656600a11a373a54ddf896d821.tar.gz
Clean up the installation/building of the runtime libraries.
* We don't need to build the native versions so that is now disabled
* We don't need to install (and hence build) the bytecode archive
  library versions of klee-libc or kleeRuntimeIntrinsic for new versions
  of LLVM right now (this is kind of messy).
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.common b/Makefile.common
index 80e6e8a1..05a8e682 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -5,7 +5,8 @@ include $(LEVEL)/Makefile.config
 # Include LLVM's Master Makefile config and rules.
 include $(LLVM_OBJ_ROOT)/Makefile.config
 
-ifeq ($(BYTECODE_LIBRARY), 1)
+BUILDING_RUNTIME:=$(if $(or $(BYTECODE_LIBRARY),$(MODULE_NAME)),1,0)
+ifeq ($(BUILDING_RUNTIME),1)
 #
 # Override make variables based on the runtime configuration. We want
 # to override whatever the user may have said on the command line,