diff options
author | Chris Bieneman <beanz@apple.com> | 2016-12-13 22:17:59 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2016-12-13 22:17:59 +0000 |
commit | 7f6611cf3ea0fe06c526211346c58f85cd1b0e9e (patch) | |
tree | 557fb342ccd5b3d160720c27168dd59c346f8b33 | |
parent | 8208592707d70759f250c13ab4c07403acd9c790 (diff) | |
download | bcm5719-llvm-7f6611cf3ea0fe06c526211346c58f85cd1b0e9e.tar.gz bcm5719-llvm-7f6611cf3ea0fe06c526211346c58f85cd1b0e9e.zip |
[llvm-config] Add --ignore-libllvm
This flag forces off linking libLLVM. This should resolve some issues reported on llvm-commits.
llvm-svn: 289605
-rw-r--r-- | llvm/test/tools/llvm-config/libs.test | 2 | ||||
-rw-r--r-- | llvm/tools/llvm-config/llvm-config.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/llvm/test/tools/llvm-config/libs.test b/llvm/test/tools/llvm-config/libs.test index 39b8834e246..25efa8ce7c0 100644 --- a/llvm/test/tools/llvm-config/libs.test +++ b/llvm/test/tools/llvm-config/libs.test @@ -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 diff --git a/llvm/tools/llvm-config/llvm-config.cpp b/llvm/tools/llvm-config/llvm-config.cpp index 4b4a3ea97ab..6fdc304dbf1 100644 --- a/llvm/tools/llvm-config/llvm-config.cpp +++ b/llvm/tools/llvm-config/llvm-config.cpp @@ -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"; @@ -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(); } |