From 833a54af3453d8dc829913b4f0d984ae77b23acf Mon Sep 17 00:00:00 2001 From: Blue Date: Fri, 2 Dec 2022 23:04:14 +0100 Subject: [PATCH 1/2] shared: Update sdk --- module/deps/cpp-sdk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/deps/cpp-sdk b/module/deps/cpp-sdk index 1703cd1..61022fa 160000 --- a/module/deps/cpp-sdk +++ b/module/deps/cpp-sdk @@ -1 +1 @@ -Subproject commit 1703cd1f317eace7c2b49a2773d52de5a8782b38 +Subproject commit 61022fa57f5973d79f61a2c2e6e784521e4b7263 From eba29eb5c558f0b88ad3bab8fe13202e60fe43b5 Mon Sep 17 00:00:00 2001 From: Blue Date: Sat, 3 Dec 2022 14:02:51 +0100 Subject: [PATCH 2/2] fix ignored-modules --- compiler/compiler.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler/compiler.cpp b/compiler/compiler.cpp index e818ca8..c60223c 100644 --- a/compiler/compiler.cpp +++ b/compiler/compiler.cpp @@ -85,8 +85,13 @@ bool Compiler::CompileModule(const std::string& fileName, bool compileDependenci // Compile the dependency file std::string fullFileName = package->ResolveFile(depPath, fileName); + // Check if the file has already been compiled if(std::find(compiledFiles.begin(), compiledFiles.end(), fullFileName) != compiledFiles.end()) continue; + + // Dont compile if the module is ignored + if(std::find(ignoredModules.begin(), ignoredModules.end(), fullFileName) != ignoredModules.end()) continue; + if(!CompileModule(fullFileName, true)) return false; } }