Generate multiple headers for multiple targets.
This commit is contained in:
@@ -2414,9 +2414,13 @@ Module::CompileAndOutput(const char *srcFile,
|
|||||||
|
|
||||||
// Only write the generate header file, if desired, the first
|
// Only write the generate header file, if desired, the first
|
||||||
// time through the loop here.
|
// time through the loop here.
|
||||||
if (i == 0 && headerFileName != NULL)
|
if (headerFileName != NULL) {
|
||||||
if (!m->writeOutput(Module::Header, headerFileName))
|
const char *isaName = g->target->GetISAString();
|
||||||
|
std::string targetHeaderFileName =
|
||||||
|
lGetTargetFileName(headerFileName, isaName);
|
||||||
|
if (!m->writeOutput(Module::Header, targetHeaderFileName.c_str()))
|
||||||
return 1;
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
delete g->target;
|
delete g->target;
|
||||||
g->target = NULL;
|
g->target = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user