-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine codegen selection and remove backend's dependency on frontend (#…
…122)
- Loading branch information
Showing
5 changed files
with
18 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,5 @@ target_include_directories(${TARGET_NAME} | |
|
||
target_link_libraries(${TARGET_NAME} PUBLIC | ||
ast | ||
frontend | ||
utils | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
cmake_minimum_required(VERSION 3.22) | ||
|
||
if(DEFINED ENABLE_CODEGEN AND NOT "${ENABLE_CODEGEN}^" STREQUAL "^" AND NOT "${ENABLE_CODEGEN}^" STREQUAL "OFF^") | ||
foreach(TARGET IN LISTS ENABLE_CODEGEN) | ||
if(IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/${TARGET}") | ||
add_subdirectory(${TARGET}) | ||
else() | ||
message(FATAL_ERROR "${TARGET} is not a correct codegen backend") | ||
endif() | ||
endforeach() | ||
endif() | ||
foreach(TARGET IN LISTS ENABLE_CODEGEN) | ||
if(IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/${TARGET}") | ||
add_subdirectory(${TARGET}) | ||
else() | ||
message(FATAL_ERROR "${TARGET} is not a correct codegen backend") | ||
endif() | ||
endforeach() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters