about summary refs log tree commit diff homepage
path: root/Makefile.common
diff options
context:
space:
mode:
authorDan Liew <daniel.liew@imperial.ac.uk>2016-09-16 15:19:21 +0100
committerDan Liew <daniel.liew@imperial.ac.uk>2016-09-29 21:30:49 +0100
commit22087763d44b4f4b6250706ff3e2b3da67347b84 (patch)
treeb96fed953c6119e578e2fa9308c7f44fb4dcbd71 /Makefile.common
parent96b77a4a211745cdee375b38ce4313dfc70efe8f (diff)
downloadklee-22087763d44b4f4b6250706ff3e2b3da67347b84.tar.gz
When building KLEE with the sanitizers make sure the runtime is not
built with them because KLEE can't handle this.
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.common b/Makefile.common
index cf7bdcf7..a6ce34fb 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -80,3 +80,8 @@ endif
 # For metaSMT
 include $(PROJ_SRC_ROOT)/MetaSMT.mk
 
+# If building KLEE with the Sanitizers don't build the runtime with it
+# because KLEE doesn't know how to handle it.
+ifneq ("X$(MODULE_NAME)$(BYTECODE_LIBRARY)X","XX")
+  CFLAGS := $(filter-out -fsanitize=%,$(CFLAGS))
+endif