Skip to content

Commit

Permalink
[llvm-config] Add --ignore-libllvm
Browse files Browse the repository at this point in the history
This flag forces off linking libLLVM. This should resolve some issues reported on llvm-commits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289605 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Chris Bieneman committed Dec 13, 2016
1 parent cce1593 commit 741933d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/tools/llvm-config/libs.test
Original file line number Diff line number Diff line change
@@ -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: LLVMSupport
CHECK-NOT: error
Expand Down
3 changes: 3 additions & 0 deletions tools/llvm-config/llvm-config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ Options:\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-static Link the component libraries statically.\n\
--ignore-libllvm Ignore libLLVM and link component libraries instead.\n\
Typical components:\n\
all All LLVM libraries (default).\n\
engine Either a native JIT or a bitcode interpreter.\n";
Expand Down Expand Up @@ -553,6 +554,8 @@ int main(int argc, char **argv) {
LinkMode = LinkModeShared;
} else if (Arg == "--link-static") {
LinkMode = LinkModeStatic;
} else if (Arg == "--ignore-libllvm") {
LinkDyLib = false;
} else {
usage();
}
Expand Down

0 comments on commit 741933d

Please sign in to comment.