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