[PATCH] D24091: [Driver] Warn on -nodefaultlibs and -fsanitize

Bruno Cardoso Lopes via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 31 11:35:28 PDT 2016


bruno added a comment.

Hi Chris,

Thanks for doing this.


================
Comment at: lib/Driver/Driver.cpp:1554
@@ -1551,1 +1553,3 @@
+        Args.hasArg(options::OPT_fsanitize_EQ))
+      Diag(clang::diag::warn_drv_sanitizers_and_nodefaultlibs);
   }
----------------
How hard is to fire the warning only when the target assumes this behavior? It seems misleading (and noisy) to warn when -nodefaultlibs isn't bypassed.


https://reviews.llvm.org/D24091





More information about the cfe-commits mailing list