diff options
author | Cristian Cadar <c.cadar@imperial.ac.uk> | 2017-02-13 22:32:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-13 22:32:07 +0000 |
commit | 13d8b4cb78c81bff97501cbe586f0fd8f1adc4d2 (patch) | |
tree | 424398f1dac3f76b85592940b1af30f4fec14b99 /runtime | |
parent | 950c823ddec56d59edb88e6ef81ba541aa5a34df (diff) | |
parent | 56afb17888a8330093e6691ae5bb1635b179431d (diff) | |
download | klee-13d8b4cb78c81bff97501cbe586f0fd8f1adc4d2.tar.gz |
Merge pull request #506 from delcypher/travis_asan_ubsan
Modify scripts and a test to allow ASan/UBSan builds.
Diffstat (limited to 'runtime')
-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) |