[PATCH] D131563: [clang] Fix clang multiarch isssue with musl

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 31 09:42:23 PDT 2022


MaskRay requested changes to this revision.
MaskRay added a comment.
This revision now requires changes to proceed.

This may not be the right direction. If GCC is not configured with `--enable-multi-arch`, `--print-multiarch` output is an empty line.
The `x86_64-linux-gnu` style output is for Debian and its derivatives which omit `vendor` in the target triple.
Clang just prints this unconditionally, but the string is not really expected for non-Debian distributions.

If a build system needs to detect this (it really shouldn't), it probably should hard code Debian hierarchy, instead of expecting Clang to do something.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131563/new/

https://reviews.llvm.org/D131563



More information about the cfe-commits mailing list