This is an archive of the discontinued LLVM Phabricator instance.

[Draft] Sanitize clang target triple
Needs ReviewPublic

Authored by serge-sans-paille on Dec 2 2022, 3:27 AM.

Details

Reviewers
aaron.ballman
Summary

Warn when meeting an unknown vendor / os / environment

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptDec 2 2022, 3:27 AM
serge-sans-paille requested review of this revision.Dec 2 2022, 3:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 2 2022, 3:27 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

This is a tentative patch for https://discourse.llvm.org/t/linking-without-gcc-on-gnu-linux/66428/3 unfortunately it appears that many triples are not recognized while widely used (at least in the CI) for instance aarch64-arm-none-eabi is used a lot in the testsuite but arm is not a registered vendor... Any thoughts?