GHS: Fix handling of duplicate source filenames (#16046)

Green Hills MULTI project files must specify explicitly distinct object
file names for source files with the same name.
This commit is contained in:
Geoff Viola
2016-04-24 13:47:48 -06:00
committed by Brad King
parent 657a446175
commit 1703a6d2c4
7 changed files with 84 additions and 0 deletions

View File

@@ -88,6 +88,8 @@ private:
WriteCustomCommandsHelper(std::vector<cmCustomCommand> const &commandsSet,
cmTarget::CustomCommandType commandType);
void WriteSources(std::vector<cmSourceFile *> const &objectSources);
static std::map<const cmSourceFile *, std::string>
GetObjectNames(const std::vector<cmSourceFile *> &objectSources);
static void WriteObjectLangOverride(cmGeneratedFileStream *fileStream,
cmSourceFile *sourceFile);
static void WriteObjectDir(cmGeneratedFileStream *fileStream,