From 9bdd2eff47fc3340bbabaaa7b0c59a2416385a85 Mon Sep 17 00:00:00 2001 From: dongchao Date: Mon, 16 Jun 2025 22:29:22 +0800 Subject: [PATCH] Avoid collecting unexist files in mixed scene Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/ICFLS1 Signed-off-by: dongchao Change-Id: Ibff99cf45f80175e8ffba22a5575bd4ca1de822e --- ets2panda/driver/build_system/src/build/base_mode.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ets2panda/driver/build_system/src/build/base_mode.ts b/ets2panda/driver/build_system/src/build/base_mode.ts index 216a80d919..9b30fbff33 100644 --- a/ets2panda/driver/build_system/src/build/base_mode.ts +++ b/ets2panda/driver/build_system/src/build/base_mode.ts @@ -558,6 +558,11 @@ export abstract class BaseMode { processed.add(currentFile); (this.dependencyFileMap?.dependants[currentFile] || []).forEach(dependant => { + // For the 1.1 declaration file referenced in dynamicPaths, if a path is detected as non-existent, it will be skipped. + const isFileExist = fs.existsSync(dependant); + if (!isFileExist) { + return; + } if (!compileFiles.has(dependant) && !processed.has(dependant)) { queue.push(dependant); } -- Gitee