From 56afb17888a8330093e6691ae5bb1635b179431d Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Thu, 19 Jan 2017 11:32:43 +0000 Subject: In legacy build system fix building libkleeRuntest when building with ASan. --- runtime/Runtest/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runtime') 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) -- cgit 1.4.1