[PATCH] D40998: [driver][darwin] Take the OS version specified in "-target" as the target OS instead of inferring it from SDK / environment
Alex Lorenz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 8 16:54:48 PST 2017
arphaman updated this revision to Diff 126243.
arphaman added a comment.
I rewrote the patch on top of https://reviews.llvm.org/D41035 as suggested by Duncan.
I also changed some of the semantics:
- If `-target` is used with `Darwin` OS, then the OS will be determined using the old semantics.
- If `-target` specifies a concrete OS (even without version), that OS is **always** used, no matter what other options/environment variables are given. The driver will warn about superfluous `-m<os>-version-min` and environment variables in this case.
Repository:
rC Clang
https://reviews.llvm.org/D40998
Files:
include/clang/Basic/DiagnosticDriverKinds.td
lib/Driver/ToolChains/Darwin.cpp
test/Driver/darwin-version.c
test/Driver/objc-weak.m
test/Driver/pic.c
test/Driver/unavailable_aligned_allocation.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40998.126243.patch
Type: text/x-patch
Size: 26403 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171209/ebf3b55c/attachment-0001.bin>
More information about the cfe-commits
mailing list