diff options
author | Petr Hosek <phosek@chromium.org> | 2018-08-16 00:22:03 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2018-08-16 00:22:03 +0000 |
commit | bc86a99f780fce86a2a214d896f5bc1afb1c9b74 (patch) | |
tree | 4c0a46feafbb26c994cc0210144ce201a378a75b /clang/test/Driver/print-target-triple.c | |
parent | 8a5d7a2784b03bc9a409cb8378ec5d26863dc38d (diff) | |
download | bcm5719-llvm-bc86a99f780fce86a2a214d896f5bc1afb1c9b74.tar.gz bcm5719-llvm-bc86a99f780fce86a2a214d896f5bc1afb1c9b74.zip |
[Driver] -print-target-triple and -print-effective-triple options
These can be used to print Clang target and effective triple.
Differential Revision: https://reviews.llvm.org/D50755
llvm-svn: 339834
Diffstat (limited to 'clang/test/Driver/print-target-triple.c')
-rw-r--r-- | clang/test/Driver/print-target-triple.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Driver/print-target-triple.c b/clang/test/Driver/print-target-triple.c new file mode 100644 index 00000000000..70b2493a6fa --- /dev/null +++ b/clang/test/Driver/print-target-triple.c @@ -0,0 +1,6 @@ +// Test that -print-target-triple prints correct triple. + +// RUN: %clang -print-target-triple 2>&1 \ +// RUN: --target=x86_64-linux-gnu \ +// RUN: | FileCheck %s +// CHECK: x86_64-unknown-linux-gnu |