From 9f522c3d8751d19f30d6d61c803ea3d8f036f552 Mon Sep 17 00:00:00 2001 From: bergamot88 Date: Tue, 2 Sep 2025 12:40:32 +0300 Subject: [PATCH] Update CMakeLists.txt Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/ICW81B Description: Remove target link libraries ark_aot and es2panda-public Testing: All required pre-merge tests passed. Results are available in the internal CI Signed-off-by: Tokmakov Alexander --- static_core/compiler/tools/paoc/CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/static_core/compiler/tools/paoc/CMakeLists.txt b/static_core/compiler/tools/paoc/CMakeLists.txt index 2fbac52de5..a55266dc24 100644 --- a/static_core/compiler/tools/paoc/CMakeLists.txt +++ b/static_core/compiler/tools/paoc/CMakeLists.txt @@ -34,9 +34,13 @@ endif() panda_add_executable(ark_aot ${PAOC_SOURCES}) -add_dependencies(ark_aot arkcompiler_options es2panda-public) - -panda_target_link_libraries(ark_aot arkbase arkruntime aot_builder es2panda-public arkassembler) +if(PANDA_WITH_ETS) + add_dependencies(ark_aot arkcompiler_options es2panda-public) + panda_target_link_libraries(ark_aot arkbase arkruntime aot_builder es2panda-public arkassembler) +else() + add_dependencies(ark_aot arkcompiler_options) + panda_target_link_libraries(ark_aot arkbase arkruntime aot_builder arkassembler) +endif() if (PANDA_LLVM_AOT) panda_target_include_directories(ark_aot SYSTEM PRIVATE ${LLVM_INCLUDE_DIRS}) -- Gitee