-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Driver] Unsupport --print-multiarch
* If GCC is configured with `--disable-multi-arch`, `--print-multiarch` output is an empty line. * If GCC is configured with `--enable-multi-arch`, `--print-multiarch` output may be a normalized triple or (on Debian, 'vendor' is omitted) `x86_64-linux-gnu`. The Clang support D101400 just prints the Debian multiarch style triple unconditionally, but the string is not really expected for non-Debian systems. AIUI many Linux distributions and non-Linux OSes don't configure GCC with `--enable-multi-arch`. Instead of getting us in the trouble of supporting all kinds of variants, drop the support as before D101400. Close #51469 Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D133170
- Loading branch information
Showing
3 changed files
with
8 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// Check the output of -print-multiarch. | ||
/// GCC --disable-multiarch, GCC --enable-multiarch (upstream and Debian specific) have different behaviors. | ||
/// We choose not to support the option. | ||
|
||
// 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{{$}} | ||
// RUN: not %clang -print-multiarch --target=x86_64-unknown-linux-gnu 2>&1 | FileCheck %s | ||
|
||
// CHECK: error: unsupported option '-print-multiarch' |