[llvm] r289609 - [llvm-config] Fixing one check where shared libs implied dylib
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 13 15:08:53 PST 2016
Author: cbieneman
Date: Tue Dec 13 17:08:52 2016
New Revision: 289609
URL: http://llvm.org/viewvc/llvm-project?rev=289609&view=rev
Log:
[llvm-config] Fixing one check where shared libs implied dylib
We shouldn't print the dylib if LinkDylib is false.
Modified:
llvm/trunk/tools/llvm-config/llvm-config.cpp
Modified: llvm/trunk/tools/llvm-config/llvm-config.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-config/llvm-config.cpp?rev=289609&r1=289608&r2=289609&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-config/llvm-config.cpp (original)
+++ llvm/trunk/tools/llvm-config/llvm-config.cpp Tue Dec 13 17:08:52 2016
@@ -598,7 +598,7 @@ int main(int argc, char **argv) {
if (!MissingLibs.empty()) {
switch (LinkMode) {
case LinkModeShared:
- if (DyLibExists && !BuiltSharedLibs)
+ if (LinkDyLib && !BuiltSharedLibs)
break;
// Using component shared libraries.
for (auto &Lib : MissingLibs)
@@ -674,7 +674,7 @@ int main(int argc, char **argv) {
}
};
- if (LinkMode == LinkModeShared && !BuiltSharedLibs) {
+ if (LinkMode == LinkModeShared && LinkDyLib) {
PrintForLib(DyLibName);
} else {
for (unsigned i = 0, e = RequiredLibs.size(); i != e; ++i) {
More information about the llvm-commits
mailing list