[llvm-config] Add --ignore-libllvm
This flag forces off linking libLLVM. This should resolve some issues reported on llvm-commits. llvm-svn: 289605
This commit is contained in:
parent
8208592707
commit
7f6611cf3e
|
@ -1,4 +1,4 @@
|
||||||
RUN: llvm-config --libs core support 2>&1 | FileCheck %s
|
RUN: llvm-config --ignore-libllvm --libs core support 2>&1 | FileCheck %s
|
||||||
CHECK: LLVMCore
|
CHECK: LLVMCore
|
||||||
CHECK: LLVMSupport
|
CHECK: LLVMSupport
|
||||||
CHECK-NOT: error
|
CHECK-NOT: error
|
||||||
|
|
|
@ -215,6 +215,7 @@ Options:\n\
|
||||||
--shared-mode Print how the provided components can be collectively linked (`shared` or `static`).\n\
|
--shared-mode Print how the provided components can be collectively linked (`shared` or `static`).\n\
|
||||||
--link-shared Link the components as shared libraries.\n\
|
--link-shared Link the components as shared libraries.\n\
|
||||||
--link-static Link the component libraries statically.\n\
|
--link-static Link the component libraries statically.\n\
|
||||||
|
--ignore-libllvm Ignore libLLVM and link component libraries instead.\n\
|
||||||
Typical components:\n\
|
Typical components:\n\
|
||||||
all All LLVM libraries (default).\n\
|
all All LLVM libraries (default).\n\
|
||||||
engine Either a native JIT or a bitcode interpreter.\n";
|
engine Either a native JIT or a bitcode interpreter.\n";
|
||||||
|
@ -553,6 +554,8 @@ int main(int argc, char **argv) {
|
||||||
LinkMode = LinkModeShared;
|
LinkMode = LinkModeShared;
|
||||||
} else if (Arg == "--link-static") {
|
} else if (Arg == "--link-static") {
|
||||||
LinkMode = LinkModeStatic;
|
LinkMode = LinkModeStatic;
|
||||||
|
} else if (Arg == "--ignore-libllvm") {
|
||||||
|
LinkDyLib = false;
|
||||||
} else {
|
} else {
|
||||||
usage();
|
usage();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue