[PATCH] D134337: [clang] [Driver] More flexible rules for loading default configs
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 29 12:45:21 PDT 2022
MaskRay added a comment.
In D134337#3824683 <https://reviews.llvm.org/D134337#3824683>, @ojeda wrote:
> Thanks Nick for the ping. Indeed, `rustc` allows to use a "target specification file" to create new targets that are not built-in, as a JSON file.
>
> They are unstable though, since they are fairly tied to LLVM, and I think the Rust compiler team prefers to stabilize flags instead.
>
> However, it would definitely be great for users and build systems if GCC, Clang and `rustc` could get together and decide on a new, common config file, even if it just covered the target specification.
Clang just uses a plain text file similar to a response file (which one can specify with `clang ... @a.rsp` before Clang got --config support).
It's unclear Clang wants to support GCC style specs file and whether GCC wants to adopt another system beside its specs.
I lean toward there isn't much cooperation as we might think.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134337/new/
https://reviews.llvm.org/D134337
More information about the cfe-commits
mailing list