bob.wilson requested changes to this revision.
bob.wilson added inline comments.
This revision now requires changes to proceed.


================
Comment at: lib/Driver/ToolChains/Darwin.cpp:1518-1523
+      // Warn about superfluous OS_DEPLOYMENT_TARGET environment variable.
+      Optional<DarwinPlatform> EnvTarget =
+          getDeploymentTargetFromEnvironmentVariables(getDriver(), 
getTriple());
+      if (EnvTarget)
+        getDriver().Diag(clang::diag::warn_drv_unused_environment_variable)
+            << EnvTarget->getAsString(Args, Opts);
----------------
I don't think there should be a warning in this case. It is common (at least 
within Apple) to set the environment variable as a default but then override it 
for some cases. Warning would be really annoying, and for anyone using -Werror 
it will break their builds.


Repository:
  rC Clang

https://reviews.llvm.org/D40998



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to