BUG: Do not write link script lines that use the ':' command which is supposed to be a no-op anyway.
This commit is contained in:
parent
d52f88ae10
commit
0a89a904b3
|
@ -567,9 +567,14 @@ void cmMakefileLibraryTargetGenerator::WriteLibraryRules
|
|||
for(std::vector<std::string>::iterator cmd = link_script_commands.begin();
|
||||
cmd != link_script_commands.end(); ++cmd)
|
||||
{
|
||||
// Do not write out empty commands or commands beginning in the
|
||||
// shell no-op ":".
|
||||
if(!cmd->empty() && (*cmd)[0] != ':')
|
||||
{
|
||||
(*linkScriptStream) << *cmd << "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Write the build rule.
|
||||
this->LocalGenerator->WriteMakeRule(*this->BuildFileStream, 0,
|
||||
|
|
Loading…
Reference in New Issue