summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/asan/lit.cfg
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2017-08-27 07:44:41 +0000
committerMichal Gorny <mgorny@gentoo.org>2017-08-27 07:44:41 +0000
commit34ca7168aea46a14f5d613a16152095ed3a25593 (patch)
treed7f6ae1b3ecfb5ae0cd6ba138e886abb4271e619 /compiler-rt/test/asan/lit.cfg
parent36bd247f64714287c754e41fb45add8fc3696b34 (diff)
downloadbcm5719-llvm-34ca7168aea46a14f5d613a16152095ed3a25593.tar.gz
bcm5719-llvm-34ca7168aea46a14f5d613a16152095ed3a25593.zip
[cmake] Remove i686 target that is duplicate to i386
Remove the explicit i686 target that is completely duplicate to the i386 target, with the latter being used more commonly. 1. The runtime built for i686 will be identical to the one built for i386. 2. Supporting both -i386 and -i686 suffixes causes unnecessary confusion on the clang end which has to expect either of them. 3. The checks are based on wrong assumption that __i686__ is defined for all newer x86 CPUs. In fact, it is only declared when -march=i686 is explicitly used. It is not available when a more specific (or newer) -march is used. Curious enough, if CFLAGS contain -march=i686, the runtime will be built both for i386 and i686. For any other value, only i386 variant will be built. Differential Revision: https://reviews.llvm.org/D26764 llvm-svn: 311842
Diffstat (limited to 'compiler-rt/test/asan/lit.cfg')
-rw-r--r--compiler-rt/test/asan/lit.cfg7
1 files changed, 1 insertions, 6 deletions
diff --git a/compiler-rt/test/asan/lit.cfg b/compiler-rt/test/asan/lit.cfg
index e25dd297aa3..c7c5036b6a5 100644
--- a/compiler-rt/test/asan/lit.cfg
+++ b/compiler-rt/test/asan/lit.cfg
@@ -121,16 +121,11 @@ else:
def build_invocation(compile_flags):
return " " + " ".join([config.compile_wrapper, config.clang] + compile_flags) + " "
-# Clang driver link 'x86' (i686) architecture to 'i386'.
-target_arch = config.target_arch
-if (target_arch == "i686"):
- target_arch = "i386"
-
config.substitutions.append( ("%clang ", build_invocation(target_cflags)) )
config.substitutions.append( ("%clangxx ", build_invocation(target_cxxflags)) )
config.substitutions.append( ("%clang_asan ", build_invocation(clang_asan_cflags)) )
config.substitutions.append( ("%clangxx_asan ", build_invocation(clang_asan_cxxflags)) )
-config.substitutions.append( ("%shared_libasan", "libclang_rt.asan-%s.so" % target_arch))
+config.substitutions.append( ("%shared_libasan", "libclang_rt.asan-%s.so" % config.target_arch))
if config.asan_dynamic:
config.substitutions.append( ("%clang_asan_static ", build_invocation(clang_asan_static_cflags)) )
config.substitutions.append( ("%clangxx_asan_static ", build_invocation(clang_asan_static_cxxflags)) )
OpenPOWER on IntegriCloud