mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-12 21:56:54 +00:00
oilgen: hash linkage names in output path
This commit is contained in:
parent
6abeb0c723
commit
78b1a6c840
@ -152,7 +152,8 @@ fs::path OIGenerator::generateForType(const OICodeGen::Config& generatorConfig,
|
||||
|
||||
// TODO: Revert to outputPath and remove printing when typegraph is done.
|
||||
fs::path tmpObject = outputPath;
|
||||
tmpObject.replace_extension("." + linkageName + ".o");
|
||||
tmpObject.replace_extension(
|
||||
"." + std::to_string(std::hash<std::string>{}(linkageName)) + ".o");
|
||||
|
||||
if (!compiler.compile(code, sourcePath, tmpObject)) {
|
||||
return {};
|
||||
|
Loading…
Reference in New Issue
Block a user