From 78b1a6c840ee809d3a0dc124490e0975189cb644 Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Fri, 15 Sep 2023 11:26:51 -0700 Subject: [PATCH] oilgen: hash linkage names in output path --- oi/OIGenerator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oi/OIGenerator.cpp b/oi/OIGenerator.cpp index 0dc1115..b518605 100644 --- a/oi/OIGenerator.cpp +++ b/oi/OIGenerator.cpp @@ -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{}(linkageName)) + ".o"); if (!compiler.compile(code, sourcePath, tmpObject)) { return {};