Merge topic 'suncc-fixes'
97b65f81
Misc. fixes for the Oracle / Sun compiler.
This commit is contained in:
commit
6da3f17309
|
@ -266,9 +266,10 @@ cmComputeLinkDepends::Compute()
|
||||||
// Iterate in reverse order so we can keep only the last occurrence
|
// Iterate in reverse order so we can keep only the last occurrence
|
||||||
// of a shared library.
|
// of a shared library.
|
||||||
std::set<int> emmitted;
|
std::set<int> emmitted;
|
||||||
|
const std::vector<int>& cFLO = this->FinalLinkOrder;
|
||||||
for(std::vector<int>::const_reverse_iterator
|
for(std::vector<int>::const_reverse_iterator
|
||||||
li = this->FinalLinkOrder.rbegin(),
|
li = cFLO.rbegin(),
|
||||||
le = this->FinalLinkOrder.rend();
|
le = cFLO.rend();
|
||||||
li != le; ++li)
|
li != le; ++li)
|
||||||
{
|
{
|
||||||
int i = *li;
|
int i = *li;
|
||||||
|
|
|
@ -80,12 +80,15 @@ void cmFindPackageCommand::AppendSearchPathGroups()
|
||||||
PathLabel::SystemRegistry);
|
PathLabel::SystemRegistry);
|
||||||
|
|
||||||
// Create the new path objects
|
// Create the new path objects
|
||||||
this->LabeledPaths.insert(std::make_pair(PathLabel::UserRegistry,
|
this->LabeledPaths.insert(
|
||||||
cmSearchPath(this)));
|
std::pair<cmFindCommon::PathLabel, cmSearchPath>(
|
||||||
this->LabeledPaths.insert(std::make_pair(PathLabel::Builds,
|
PathLabel::UserRegistry, cmSearchPath(this)));
|
||||||
cmSearchPath(this)));
|
this->LabeledPaths.insert(
|
||||||
this->LabeledPaths.insert(std::make_pair(PathLabel::SystemRegistry,
|
std::pair<cmFindCommon::PathLabel, cmSearchPath>(
|
||||||
cmSearchPath(this)));
|
PathLabel::Builds, cmSearchPath(this)));
|
||||||
|
this->LabeledPaths.insert(
|
||||||
|
std::pair<cmFindCommon::PathLabel, cmSearchPath>(
|
||||||
|
PathLabel::SystemRegistry, cmSearchPath(this)));
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue