diff options
author | Hans Wennborg <hans@hanshq.net> | 2015-07-30 01:45:17 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2015-07-30 01:45:17 +0000 |
commit | 2e0ebe3e638a1d8ad6c99c7a7078b0cd94502773 (patch) | |
tree | b1dab3c413cf033877a85672bb6226ce659e3fee /test/sanitizer_common | |
parent | 9f881e0fa886c9aa2faa88247d975eecdc87ac9c (diff) |
[CMake] Pass -march=i686 when targeting i686 (PR24222)
Clang will not define __i686__, even when the target triple is i686,
without -march=i686.
With this patch, the compiler-rt build will successfully detect that
Clang can target i686.
The open_memstream.cc test is a little funny. Before my patch, it
was invoked with "-m32 -m64". To make it work after my -march
change, I had to add '-march=x86-64'.
Differential Revision: http://reviews.llvm.org/D11618
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@243604 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/sanitizer_common')
-rw-r--r-- | test/sanitizer_common/TestCases/Linux/open_memstream.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sanitizer_common/TestCases/Linux/open_memstream.cc b/test/sanitizer_common/TestCases/Linux/open_memstream.cc index 3bce030dd..8ebb6de84 100644 --- a/test/sanitizer_common/TestCases/Linux/open_memstream.cc +++ b/test/sanitizer_common/TestCases/Linux/open_memstream.cc @@ -1,5 +1,5 @@ -// RUN: %clangxx -m64 -O0 -g -xc++ %s -o %t && %run %t -// RUN: %clangxx -m64 -O3 -g -xc++ %s -o %t && %run %t +// RUN: %clangxx -m64 -march=x86-64 -O0 -g -xc++ %s -o %t && %run %t +// RUN: %clangxx -m64 -march=x86-64 -O3 -g -xc++ %s -o %t && %run %t // REQUIRES: x86_64-supported-target #include <assert.h> |