llvm.org GIT mirror llvm / 38087e5
llvm-config: Set LinkMode in addition to LinkDyLib when using --ignore-llvm Summary: LinkDyLib is only used (before arg processing) to set up the default for LinkMode. So reset LinkMode as well, and process before --link-shared or --link-static to allow those flags to continue to override it. Reviewers: beanz Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D27736 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289608 91177308-0d34-0410-b5e6-96231b3b80d8 Derek Schuff 2 years ago
1 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
549549 OS << ActivePrefix << '\n';
550550 } else if (Arg == "--src-root") {
551551 OS << LLVM_SRC_ROOT << '\n';
552 } else if (Arg == "--ignore-libllvm") {
553 LinkDyLib = false;
554 LinkMode = BuiltSharedLibs ? LinkModeShared : LinkModeAuto;
552555 } else if (Arg == "--link-shared") {
553556 LinkMode = LinkModeShared;
554557 } else if (Arg == "--link-static") {
555558 LinkMode = LinkModeStatic;
556 } else if (Arg == "--ignore-libllvm") {
557 LinkDyLib = false;
558559 } else {
559560 usage();
560561 }