[cfe-commits] [PATCH] [clang] add --supported-targets option for clang
John McCall
rjmccall at apple.com
Fri Jan 4 11:41:20 PST 2013
On Dec 20, 2012, at 11:25 PM, Saleem Abdulrasool <compnerd at compnerd.org> wrote:
> Add a new driver-only option `--supported-targets` which enumerates the supported targets to stdout. This is an often requested feature, allowing for a quick inspection of supported target architectures supported by a particular build of clang.
Is this for users or scripts?
For users, it would be better to squeeze this into some existing help/version option, like clang -v or clang --help. Unfortunately, I think the format of clang -v might be tightly constrained by existing scripts to follow GCC's lead, which is why we have nonsense things like a threading model in there.
For scripts, rather than making a new top-level option (unless there's precedent for this one in particular), it would be better to introduce a general querying option and just make this the first parameter for it. e.g.
clang --show targets
John.
More information about the cfe-commits
mailing list