mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
GHS: Remove extra flag to GHS MULTI compiler (#15771)
Do not produce "{optgroup=GhsCommonOptions}" in the generated .gpj
files. The flag was added originally to match an old project file, but
it does not seem necessary and is not compatible with all GHS versions.
This commit is contained in:
@@ -217,7 +217,7 @@ void cmGhsMultiTargetGenerator::WriteTypeSpecifics(const std::string &config,
|
||||
|
||||
if (this->Target->GetType() == cmTarget::STATIC_LIBRARY)
|
||||
{
|
||||
*this->GetFolderBuildStreams() << " {optgroup=GhsCommonOptions} -o \""
|
||||
*this->GetFolderBuildStreams() << " -o \""
|
||||
<< outputDir << outputFilename << ".a\""
|
||||
<< std::endl;
|
||||
}
|
||||
@@ -230,7 +230,7 @@ void cmGhsMultiTargetGenerator::WriteTypeSpecifics(const std::string &config,
|
||||
if (this->IsTargetGroup())
|
||||
{
|
||||
*this->GetFolderBuildStreams()
|
||||
<< " {optgroup=GhsCommonOptions} -o \"" << outputDir
|
||||
<< " -o \"" << outputDir
|
||||
<< outputFilename << ".elf\"" << std::endl;
|
||||
*this->GetFolderBuildStreams() << " :extraOutputFile=\"" << outputDir
|
||||
<< outputFilename << ".elf.ael\""
|
||||
@@ -238,7 +238,7 @@ void cmGhsMultiTargetGenerator::WriteTypeSpecifics(const std::string &config,
|
||||
}
|
||||
else
|
||||
{
|
||||
*this->GetFolderBuildStreams() << " {optgroup=GhsCommonOptions} -o \""
|
||||
*this->GetFolderBuildStreams() << " -o \""
|
||||
<< outputDir << outputFilename << ".as\""
|
||||
<< std::endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user