diff options
author | Dan Liew <daniel.liew@imperial.ac.uk> | 2017-01-19 11:32:43 +0000 |
---|---|---|
committer | Dan Liew <daniel.liew@imperial.ac.uk> | 2017-01-19 11:50:41 +0000 |
commit | 56afb17888a8330093e6691ae5bb1635b179431d (patch) | |
tree | 3ca5b18830489b62d6800291ccb75e61c0c1c6e6 | |
parent | f420cbee41ff68f8229b70e8b3ee9e1f13ed670f (diff) | |
download | klee-56afb17888a8330093e6691ae5bb1635b179431d.tar.gz |
In legacy build system fix building libkleeRuntest when building
with ASan.
-rw-r--r-- | runtime/Runtest/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/Runtest/Makefile b/runtime/Runtest/Makefile index 82e21345..1de3281b 100644 --- a/runtime/Runtest/Makefile +++ b/runtime/Runtest/Makefile @@ -56,8 +56,14 @@ ifeq ($(HOST_OS), $(filter $(HOST_OS), DragonFly Linux FreeBSD GNU/kFreeBSD GNU) endif ifeq ($(HOST_OS), $(filter $(HOST_OS), Linux GNU GNU/kFreeBSD)) + ifeq (-fsanitize=address,$(filter -fsanitize=address,$(CXXFLAGS))) + # When building with ASan the library will have undefined symbols into + # ASan's runtime. We want to allow this and not fail the build. + $(warning Allowing undefined symbols in $(LIBRARYNAME) due to ASan build) + else # Don't allow unresolved symbols. LLVMLibsOptions += -Wl,--no-undefined + endif endif ifeq ($(HOST_OS), Linux) |