[PATCH] D27736: llvm-config: Set LinkMode in addition to LinkDyLib when using --ignore-llvm

Derek Schuff via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 13 15:12:12 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL289608: llvm-config: Set LinkMode in addition to LinkDyLib when using --ignore-llvm (authored by dschuff).

Changed prior to commit:
  https://reviews.llvm.org/D27736?vs=81314&id=81316#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D27736

Files:
  llvm/trunk/tools/llvm-config/llvm-config.cpp


Index: llvm/trunk/tools/llvm-config/llvm-config.cpp
===================================================================
--- llvm/trunk/tools/llvm-config/llvm-config.cpp
+++ llvm/trunk/tools/llvm-config/llvm-config.cpp
@@ -550,12 +550,13 @@
         OS << ActivePrefix << '\n';
       } else if (Arg == "--src-root") {
         OS << LLVM_SRC_ROOT << '\n';
+      } else if (Arg == "--ignore-libllvm") {
+        LinkDyLib = false;
+        LinkMode = BuiltSharedLibs ? LinkModeShared : LinkModeAuto;
       } else if (Arg == "--link-shared") {
         LinkMode = LinkModeShared;
       } else if (Arg == "--link-static") {
         LinkMode = LinkModeStatic;
-      } else if (Arg == "--ignore-libllvm") {
-        LinkDyLib = false;
       } else {
         usage();
       }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27736.81316.patch
Type: text/x-patch
Size: 778 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161213/9deb1c57/attachment.bin>


More information about the llvm-commits mailing list