Skip to content

Commit

Permalink
Fix removing .o extension for incremental
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Rift <[email protected]>
  • Loading branch information
riftEmber committed Dec 9, 2024
1 parent 79bf956 commit 47b5b9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/codegen/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3116,7 +3116,8 @@ static void codegenPartTwo() {
const char* filename = NULL;
filename = generateFileName(fileNameHashMap, filename, currentModule->name);
openCFile(&modulefile, filename, "c");
std::string path = modulefile.pathname;
// cut off .o extension
std::string path(modulefile.pathname, strlen(modulefile.pathname) - 2);
userFileName.push_back(astr(path));
closeCFile(&modulefile);
}
Expand Down

0 comments on commit 47b5b9e

Please sign in to comment.