From 3197f8e6cbdfae9410b2b149714165a3d0465657 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Thu, 4 Oct 2012 12:22:33 +0000 Subject: [PATCH] [ASan] don't build 64-bit runtime on 32-bit Linux platforms llvm-svn: 165222 --- compiler-rt/make/platform/clang_linux.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler-rt/make/platform/clang_linux.mk b/compiler-rt/make/platform/clang_linux.mk index fa33ee3264c2..638707f3e359 100644 --- a/compiler-rt/make/platform/clang_linux.mk +++ b/compiler-rt/make/platform/clang_linux.mk @@ -38,7 +38,11 @@ Arch.profile-x86_64 := x86_64 endif # Configuration for ASAN runtime. -ifeq ($(call contains,i386 x86_64,$(CompilerTargetArch)),true) +ifeq ($(CompilerTargetArch),i386) +Configs += asan-i386 +Arch.asan-i386 := i386 +endif +ifeq ($(CompilerTargetArch),x86_64) Configs += asan-i386 asan-x86_64 Arch.asan-i386 := i386 Arch.asan-x86_64 := x86_64