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

Chris Bieneman via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 11 08:48:56 PST 2016


beanz created this revision.
beanz added a reviewer: bob.wilson.
beanz added a subscriber: cfe-commits.

This patch adds a new driver warning -Wincompatible-sdk which notifies the user when they are mismatching the version min options and the sysroot.

The patch works by checking the sysroot (if present) for an SDK name, then matching that against the target platform. In the case of a mismatch it logs a warning.

http://reviews.llvm.org/D18088

Files:
  include/clang/Basic/DiagnosticDriverKinds.td
  include/clang/Driver/Options.td
  lib/Driver/ToolChains.cpp
  lib/Driver/ToolChains.h
  test/Driver/incompatible_sdk.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18088.50437.patch
Type: text/x-patch
Size: 4521 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160311/b9e220a9/attachment.bin>


More information about the cfe-commits mailing list