[PATCH] D55654: [clang] [Driver] [NetBSD] Add -D_REENTRANT when using sanitizers

Michał Górny via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 18 09:11:32 PST 2018


mgorny marked 2 inline comments as done.
mgorny added inline comments.


================
Comment at: lib/Driver/ToolChains/NetBSD.cpp:465
+  const SanitizerArgs &SanArgs = getSanitizerArgs();
+  if (SanArgs.needsAsanRt() || SanArgs.needsHwasanRt() ||
+      SanArgs.needsDfsanRt() || SanArgs.needsLsanRt() ||
----------------
krytarowski wrote:
> There should be some way to express any sanitizer (-fsanitize) and we want _REENTRANT for all of them.
I've added it in dependent commit.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55654/new/

https://reviews.llvm.org/D55654





More information about the cfe-commits mailing list