diff options
author | Dan Liew <daniel.liew@imperial.ac.uk> | 2017-01-19 10:33:18 +0000 |
---|---|---|
committer | Dan Liew <daniel.liew@imperial.ac.uk> | 2017-01-19 11:50:41 +0000 |
commit | f420cbee41ff68f8229b70e8b3ee9e1f13ed670f (patch) | |
tree | 9602bd99b8f405d6cf3a54b3f024f21290cfe734 /test/Makefile | |
parent | 5454dd510f7414989440988c3df85d9bef6852c2 (diff) | |
download | klee-f420cbee41ff68f8229b70e8b3ee9e1f13ed670f.tar.gz |
Teach both build systems to pass the user provided CXXFLAGS and CFLAGS
when using the native compiler in system tests. This fixes the `libkleeruntest` tests when building with ASan.
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Makefile b/test/Makefile index c96ae889..a2d95056 100644 --- a/test/Makefile +++ b/test/Makefile @@ -74,7 +74,7 @@ lit.site.cfg: lit.site.cfg.in -e "s#@HAVE_SELINUX@#$(HAVE_SELINUX)#g" \ -e "s#@ENABLE_STP@#$(ENABLE_STP)#g" \ -e "s#@ENABLE_Z3@#$(ENABLE_Z3)#g" \ - -e "s#@NATIVE_CC@#$(CC) -I$(PROJ_SRC_ROOT)/include#g" \ - -e "s#@NATIVE_CXX@#$(CXX) -I$(PROJ_SRC_ROOT)/include#g" \ + -e "s#@NATIVE_CC@#$(CC) $(CFLAGS) -I$(PROJ_SRC_ROOT)/include#g" \ + -e "s#@NATIVE_CXX@#$(CXX) $(CXXFLAGS) -I$(PROJ_SRC_ROOT)/include#g" \ -e "s#@LIB_KLEE_RUN_TEST_PATH@#$(SharedLibDir)/$(SharedPrefix)kleeRuntest$(SHLIBEXT)#g" \ $(PROJ_SRC_DIR)/lit.site.cfg.in > $@ |