[PATCH] Force an unknown target for the default case to make it work.

Filipe Cabecinhas filcab+llvm.phabricator at gmail.com
Wed Feb 4 17:42:46 PST 2015


Hi echristo,

This test was failing if LLVM_DEFAULT_TARGET_TRIPLE=x86_64-scei-ps4 due to
its behavior for exceptions.
Force an --unknown triple for the default case.

http://reviews.llvm.org/D7422

Files:
  test/Driver/clang-exception-flags.cpp

Index: test/Driver/clang-exception-flags.cpp
===================================================================
--- test/Driver/clang-exception-flags.cpp
+++ test/Driver/clang-exception-flags.cpp
@@ -1,4 +1,7 @@
-// RUN: %clang -### %s 2>&1 | FileCheck %s -check-prefix=DEFAULT
+// We have to force the target to unknown for the default, since clang
+// might have been built with LLVM_DEFAULT_TARGET_TRIPLE=x86_64-scei-ps4,
+// which defaults to -fno-exceptions.
+// RUN: %clang -### -target unknown %s 2>&1 | FileCheck %s -check-prefix=DEFAULT
 // DEFAULT: "-cc1" {{.*}} "-fcxx-exceptions" "-fexceptions"
 //
 // RUN: %clang -### -fexceptions %s 2>&1 | FileCheck %s -check-prefix=ON1

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7422.19366.patch
Type: text/x-patch
Size: 687 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150205/3d1ff39a/attachment.bin>


More information about the cfe-commits mailing list