refactor(frontend): 添加对只编译前端的支持

This commit is contained in:
jing
2026-03-17 18:18:55 +08:00
parent 10ea8aad14
commit a091d9108a
6 changed files with 126 additions and 62 deletions

View File

@@ -37,6 +37,8 @@ if(COMPILER_ENABLE_WARNINGS)
endif()
endif()
option(COMPILER_PARSE_ONLY "Build only the frontend parser pipeline" OFF)
# 使用仓库内 third_party 提供的 ANTLR4 C++ runtime较新版本
# third_party 目录结构以仓库为准runtime 源码位于 third_party/antlr4-runtime-4.13.2/runtime/src
set(ANTLR4_RUNTIME_SRC_DIR "${PROJECT_SOURCE_DIR}/third_party/antlr4-runtime-4.13.2/runtime/src")