[Driver] Add -print-multiarch
authorPetr Hosek <phosek@google.com>
Tue, 27 Apr 2021 21:26:55 +0000 (14:26 -0700)
committerPetr Hosek <phosek@google.com>
Tue, 27 Apr 2021 23:04:54 +0000 (16:04 -0700)
commita921d2d2fb46b898794091e7410426c518a4f0cc
treef2d459c01b18a05f125a9cc8851f2a366d6ec97f
parent4dfddf715b94857998601aa79c25e4f327d44dfa
[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
clang/include/clang/Driver/Options.td
clang/include/clang/Driver/ToolChain.h
clang/lib/Driver/Driver.cpp
clang/lib/Driver/ToolChains/Fuchsia.h
clang/lib/Driver/ToolChains/Linux.h
clang/test/Driver/print-multiarch.c [new file with mode: 0644]