forked from OSchip/llvm-project
Only print the selected multilib when something is actually found on the host.
llvm-svn: 201709
This commit is contained in:
parent
c30e764942
commit
e3f902c32a
|
@ -82,6 +82,10 @@ public:
|
||||||
/// Check whether any of the 'against' flags contradict the 'for' flags.
|
/// Check whether any of the 'against' flags contradict the 'for' flags.
|
||||||
bool isValid() const;
|
bool isValid() const;
|
||||||
|
|
||||||
|
/// Check whether the default is selected
|
||||||
|
bool isDefault() const
|
||||||
|
{ return GCCSuffix.empty() && OSSuffix.empty() && IncludeSuffix.empty(); }
|
||||||
|
|
||||||
bool operator==(const Multilib &Other) const;
|
bool operator==(const Multilib &Other) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1263,11 +1263,15 @@ void Generic_GCC::GCCInstallationDetector::print(raw_ostream &OS) const {
|
||||||
I != E; ++I)
|
I != E; ++I)
|
||||||
OS << "Found candidate GCC installation: " << *I << "\n";
|
OS << "Found candidate GCC installation: " << *I << "\n";
|
||||||
|
|
||||||
|
if (!GCCInstallPath.empty())
|
||||||
OS << "Selected GCC installation: " << GCCInstallPath << "\n";
|
OS << "Selected GCC installation: " << GCCInstallPath << "\n";
|
||||||
|
|
||||||
for (MultilibSet::const_iterator I = Multilibs.begin(), E = Multilibs.end();
|
for (MultilibSet::const_iterator I = Multilibs.begin(), E = Multilibs.end();
|
||||||
I != E; ++I) {
|
I != E; ++I) {
|
||||||
OS << "Candidate multiilb: " << *I << "\n";
|
OS << "Candidate multiilb: " << *I << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Multilibs.size() != 0 || !SelectedMultilib.isDefault())
|
||||||
OS << "Selected multilib: " << SelectedMultilib << "\n";
|
OS << "Selected multilib: " << SelectedMultilib << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue