r228337 - Force an unknown target for the default case to make it work.
Filipe Cabecinhas
me at filcab.net
Thu Feb 5 11:48:48 PST 2015
Author: filcab
Date: Thu Feb 5 13:48:48 2015
New Revision: 228337
URL: http://llvm.org/viewvc/llvm-project?rev=228337&view=rev
Log:
Force an unknown target for the default case to make it work.
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
Modified:
cfe/trunk/test/Driver/clang-exception-flags.cpp
Modified: cfe/trunk/test/Driver/clang-exception-flags.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/clang-exception-flags.cpp?rev=228337&r1=228336&r2=228337&view=diff
==============================================================================
--- cfe/trunk/test/Driver/clang-exception-flags.cpp (original)
+++ cfe/trunk/test/Driver/clang-exception-flags.cpp Thu Feb 5 13:48:48 2015
@@ -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
More information about the cfe-commits
mailing list