mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 17:06:07 +00:00

For an unknown target triple, the ", please use -triple or -arch" hint of the diagnostic is almost always wrong. For cc1, the error is due to a specified but unknown -triple. For driver, -triple and -arch are not driver options.
5 lines
221 B
C
5 lines
221 B
C
// RUN: rm -rf %t && mkdir %t
|
|
// RUN: not %clang_cc1 %s -triple blah-unknown-unknown -serialize-diagnostic-file %t/diag -o /dev/null 2>&1 | FileCheck %s
|
|
|
|
// CHECK: error: unknown target triple 'blah-unknown-unknown'{{$}}
|