The warning about the superfluous -<os>-version-min compiler option seems a little too strong right now. For now we should only warn about -<os>-version-min options that specify a different OS version to the -target's version.
Details
Diff Detail
- Repository
- rC Clang
Event Timeline
Eventually it would be nice to also warn about redundant -m*-version-min options, but for now I agree that it would be best to start with warning only when the options are different.
Just a small suggestion. Looks good otherwise.
lib/Driver/ToolChains/Darwin.cpp | ||
---|---|---|
1536 | HadExtra is not ok right? macos10.11.0.1 is not the same as macos10.11.0? |
lib/Driver/ToolChains/Darwin.cpp | ||
---|---|---|
1536 | Right, it would be nice to check the extra stuff too. I will commit with the check and a test for the extra part. |
lib/Driver/ToolChains/Darwin.cpp | ||
---|---|---|
1536 | And what about "-target x86_64-apple-macos -mmacos-version-min=10.6"? |
lib/Driver/ToolChains/Darwin.cpp | ||
---|---|---|
1536 | We will warn on that. |
HadExtra is not ok right? macos10.11.0.1 is not the same as macos10.11.0?
Or HadExtra is an error somewhere else already?