From e56c68779afaac0690f002b001e1bb91ec87a6e8 Mon Sep 17 00:00:00 2001 From: lihao Date: Fri, 6 Jun 2025 14:48:31 +0800 Subject: [PATCH] load es2panda by absolute path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue: [新需求]: 使用绝对路径加载es2panda https://gitee.com/openharmony/developtools_ace_ets2bundle/issues/ICD3FM Signed-off-by: lihao --- ets2panda/driver/build_system/src/init/process_build_config.ts | 1 + ets2panda/driver/build_system/src/types.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/ets2panda/driver/build_system/src/init/process_build_config.ts b/ets2panda/driver/build_system/src/init/process_build_config.ts index 0f6109ef23..24b0f0e57c 100644 --- a/ets2panda/driver/build_system/src/init/process_build_config.ts +++ b/ets2panda/driver/build_system/src/init/process_build_config.ts @@ -141,4 +141,5 @@ function initKoalaWrapper(buildConfig: BuildConfig): void { const { arkts, arktsGlobal } = require(koalaWrapperPath); buildConfig.arkts = arkts; buildConfig.arktsGlobal = arktsGlobal; + buildConfig.arktsGlobal.es2panda._SetUpSoPath(buildConfig.pandaSdkPath); } diff --git a/ets2panda/driver/build_system/src/types.ts b/ets2panda/driver/build_system/src/types.ts index 0afb84da07..e375e7d7d8 100644 --- a/ets2panda/driver/build_system/src/types.ts +++ b/ets2panda/driver/build_system/src/types.ts @@ -58,6 +58,7 @@ export interface ArkTSGlobal { _MemFinalize: Function; _CreateGlobalContext: Function; _DestroyGlobalContext: Function; + _SetUpSoPath: Function; } } -- Gitee