]> granicus.if.org Git - clang/commitdiff
Force an unknown target for the default case to make it work.
authorFilipe Cabecinhas <me@filcab.net>
Thu, 5 Feb 2015 19:48:48 +0000 (19:48 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Thu, 5 Feb 2015 19:48:48 +0000 (19:48 +0000)
Summary:
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.

Reviewers: echristo, chandlerc

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D7422

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228337 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/clang-exception-flags.cpp

index 90a9ebf5e44e66544344ce2983c8774aa9dd871c..8c27d9b16d2d034574cb1d4fa2173ab55349cae1 100644 (file)
@@ -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