Skip to content

Commit

Permalink
Fix bug of one source file compiled multiple times (#400)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcauberer committed Dec 18, 2023
1 parent f2c3515 commit 0e5d5d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/global/GlobalResourceManager.cpp
Expand Up @@ -65,7 +65,7 @@ GlobalResourceManager::~GlobalResourceManager() {
SourceFile *GlobalResourceManager::createSourceFile(SourceFile *parent, const std::string &depName,
const std::filesystem::path &path, bool isStdFile) {
// Check if the source file was already added (e.g. by another source file that imports it)
const std::string filePathStr = path.string();
const std::string filePathStr = std::filesystem::weakly_canonical(std::filesystem::absolute(path)).string();

// Create the new source file if it does not exist yet
if (!sourceFiles.contains(filePathStr))
Expand Down

0 comments on commit 0e5d5d4

Please sign in to comment.