llvm/clang/test/Driver/print-multiarch.c
Petr Hosek a921d2d2fb [Driver] Add -print-multiarch
This is useful in runtimes build for example which currently try to
guess the correct triple where to place libraries in the multiarch
layout.  Using this flag, the build system can get the correct triple
directly by querying Clang.

Differential Revision: https://reviews.llvm.org/D101400
2021-04-27 16:04:54 -07:00

7 lines
270 B
C

// Check the output of -print-multiarch.
// RUN: %clang -print-multiarch --target=x86_64-unknown-linux-gnu \
// RUN: -resource-dir=%S/Inputs/resource_dir \
// RUN: | FileCheck --check-prefix=PRINT-MULTIARCH %s
// PRINT-MULTIARCH: {{^}}x86_64-linux-gnu{{$}}