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

Filipe Cabecinhas filcab+llvm.phabricator at gmail.com
Thu Feb 5 11:50:35 PST 2015


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D7422

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

Index: cfe/trunk/test/Driver/clang-exception-flags.cpp
===================================================================
--- cfe/trunk/test/Driver/clang-exception-flags.cpp
+++ cfe/trunk/test/Driver/clang-exception-flags.cpp
@@ -1,4 +1,6 @@
-// RUN: %clang -### %s 2>&1 | FileCheck %s -check-prefix=DEFAULT
+// We force the target to unknown because clang's default behavior for
+// exception handling is target dependent.
+// 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.19422.patch
Type: text/x-patch
Size: 647 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150205/f3b992fb/attachment.bin>


More information about the cfe-commits mailing list