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 | |
| 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')
| -rw-r--r-- | clang/test/Driver/print-effective-triple.c | 6 | ||||
| -rw-r--r-- | clang/test/Driver/print-target-triple.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Driver/print-effective-triple.c b/clang/test/Driver/print-effective-triple.c new file mode 100644 index 00000000000..65b38748d6a --- /dev/null +++ b/clang/test/Driver/print-effective-triple.c @@ -0,0 +1,6 @@ +// Test that -print-target-triple prints correct triple. + +// RUN: %clang -print-effective-triple 2>&1 \ +// RUN: --target=thumb-linux-gnu \ +// RUN: | FileCheck %s +// CHECK: armv4t-unknown-linux-gnu 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 |

