[PATCH] D56288: [ELF] Do not enable 'new dtags' on NetBSD by default

Michał Górny via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 8 12:43:18 PST 2019


mgorny updated this revision to Diff 180718.
mgorny added a comment.

Updating for completeness.


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

https://reviews.llvm.org/D56288

Files:
  ELF/Driver.cpp


Index: ELF/Driver.cpp
===================================================================
--- ELF/Driver.cpp
+++ ELF/Driver.cpp
@@ -813,7 +813,8 @@
   Config->CallGraphProfileSort = Args.hasFlag(
       OPT_call_graph_profile_sort, OPT_no_call_graph_profile_sort, true);
   Config->EnableNewDtags =
-      Args.hasFlag(OPT_enable_new_dtags, OPT_disable_new_dtags, true);
+      Args.hasFlag(OPT_enable_new_dtags, OPT_disable_new_dtags,
+                   !Config->TargetTriple.isOSNetBSD());
   Config->Entry = Args.getLastArgValue(OPT_entry);
   Config->ExecuteOnly =
       Args.hasFlag(OPT_execute_only, OPT_no_execute_only, false);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56288.180718.patch
Type: text/x-patch
Size: 637 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190108/8d91f285/attachment.bin>


More information about the cfe-commits mailing list