Warn if the .{ios|tvos|macosx|watchos}_version_min version does not match the target triple.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
This might be a bit overzealous. A simple "clang -arch armv7s myfile.s" defaults to an ios5.0 triple rather than an unspecified version, but I'd prefer not to have to tell clang both on the command-line and in a directive about the version (and to have to keep them in sync).
Comment Actions
The intention was to not perform the check if no version was specified on the commandline, but if there is no way to tell if we have an explicitely specified version or a default in the target triple for the "clang -cc1as" invocation, then I guess there is no way to produce a warning without false positives here.