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 0f6109ef2364f77082b998eb73916f467d161356..24b0f0e57ca809889b0ec0eda08fcd89dca5c5b3 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 0afb84da0714b559931641d5547c43b6dd7c234e..e375e7d7d83b46afe36ca38e983b716dd07488ec 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; } }