[PATCH] D18088: Add a new warning to notify users of mismatched SDK and deployment target

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 29 15:29:42 PDT 2016


rsmith accepted this revision.
rsmith added a reviewer: rsmith.
This revision is now accepted and ready to land.

================
Comment at: lib/Driver/ToolChains.cpp:733
@@ +732,3 @@
+      StringRef SDKName = SDK.slice(0, StartVer);
+      if (!SDKName.startswith(getPlatformFamily()))
+        getDriver().Diag(diag::warn_incompatible_sysroot)
----------------
I assume it's intentional that you allow targeting FooOS with a sysroot for FooSimulator and vice versa?


http://reviews.llvm.org/D18088





More information about the cfe-commits mailing list