]> granicus.if.org Git - clang/commitdiff
Make sure 32-bit ASan runtime is available on 64-bit Linux platforms
authorAlexey Samsonov <samsonov@google.com>
Wed, 3 Oct 2012 07:23:03 +0000 (07:23 +0000)
committerAlexey Samsonov <samsonov@google.com>
Wed, 3 Oct 2012 07:23:03 +0000 (07:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165097 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/compiler-rt/Makefile

index 2815f1783aae89e2f8950b6939cf3cd34c4625f4..58cb7fdaafe0f001e164b0825c6e986b050c6f84 100644 (file)
@@ -92,6 +92,10 @@ endif
 ifeq ($(ARCH),x86_64)
 RuntimeLibrary.linux.Configs += \
        full-x86_64.a profile-x86_64.a asan-x86_64.a tsan-x86_64.a
+# We assume that 32-bit ASan library can be built by Clang on 64-bit platform,
+# and add it to the list of runtime libraries so that
+# "clang -faddress-sanitizer -m32" would work.
+RuntimeLibrary.linux.Configs += asan-i386.a
 endif
 
 endif