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 llvm-svn: 289608
This commit is contained in:
@@ -550,12 +550,13 @@ int main(int argc, char **argv) {
|
||||
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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user