[llvm-config] Fixing one check where shared libs implied dylib

We shouldn't print the dylib if LinkDylib is false.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289609 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Bieneman 2016-12-13 23:08:52 +00:00
parent 38087e591e
commit 23d0163e61

View File

@ -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) {