-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
WuK
committed
Feb 21, 2024
1 parent
11ae31c
commit 2d14130
Showing
10 changed files
with
41 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"image": "wukan0621/sysu-lang", | ||
"image": "wukan0621/sysu-lang:v2404.0.0.20240115" | ||
} |
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
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,6 +1,7 @@ | ||
project(sysu-generator) | ||
find_package(LLVM REQUIRED) | ||
add_executable(sysu-generator main.cc) | ||
add_executable(${PROJECT_NAME} main.cc) | ||
llvm_map_components_to_libnames(LLVM_LIBS core support) | ||
target_link_libraries(sysu-generator ${LLVM_LIBS}) | ||
target_include_directories(sysu-generator PRIVATE ${LLVM_INCLUDE_DIRS}) | ||
install(TARGETS sysu-generator) | ||
target_link_libraries(${PROJECT_NAME} ${LLVM_LIBS}) | ||
target_include_directories(${PROJECT_NAME} PRIVATE ${LLVM_INCLUDE_DIRS}) | ||
install(TARGETS ${PROJECT_NAME}) |
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
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,5 +1,6 @@ | ||
project(sysu-lexer) | ||
find_package(FLEX REQUIRED) | ||
flex_target(lexer lexer.l ${CMAKE_CURRENT_BINARY_DIR}/main.cc | ||
DEFINES_FILE ${CMAKE_CURRENT_BINARY_DIR}/lexer.hh) | ||
add_executable(sysu-lexer ${FLEX_lexer_OUTPUTS}) | ||
install(TARGETS sysu-lexer) | ||
add_executable(${PROJECT_NAME} ${FLEX_lexer_OUTPUTS}) | ||
install(TARGETS ${PROJECT_NAME}) |
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,12 +1,13 @@ | ||
project(sysu-optimizer) | ||
find_package(LLVM REQUIRED) | ||
|
||
add_library(sysuOptimizer SHARED optimizer.cc) | ||
target_include_directories(sysuOptimizer PRIVATE ${LLVM_INCLUDE_DIRS}) | ||
install(TARGETS sysuOptimizer) | ||
|
||
add_executable(sysu-optimizer main.cc) | ||
add_executable(${PROJECT_NAME} main.cc) | ||
llvm_map_components_to_libnames(LLVM_LIBS passes irreader core support) | ||
target_link_libraries(sysu-optimizer sysuOptimizer ${LLVM_LIBS}) | ||
target_include_directories(sysu-optimizer PRIVATE ${LLVM_INCLUDE_DIRS}) | ||
install(TARGETS sysu-optimizer) | ||
target_link_libraries(${PROJECT_NAME} sysuOptimizer ${LLVM_LIBS}) | ||
target_include_directories(${PROJECT_NAME} PRIVATE ${LLVM_INCLUDE_DIRS}) | ||
install(TARGETS ${PROJECT_NAME}) | ||
install(FILES optimizer.hh DESTINATION include/sysu-compiler) |
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,9 +1,10 @@ | ||
project(sysu-parser) | ||
find_package(LLVM REQUIRED) | ||
find_package(BISON REQUIRED) | ||
bison_target(parser parser.y ${CMAKE_CURRENT_BINARY_DIR}/main.cc | ||
DEFINES_FILE ${CMAKE_CURRENT_BINARY_DIR}/parser.hh) | ||
add_executable(sysu-parser ${BISON_parser_OUTPUT_SOURCE}) | ||
add_executable(${PROJECT_NAME} ${BISON_parser_OUTPUT_SOURCE}) | ||
llvm_map_components_to_libnames(LLVM_LIBS support) | ||
target_link_libraries(sysu-parser ${LLVM_LIBS}) | ||
target_include_directories(sysu-parser PRIVATE ${LLVM_INCLUDE_DIRS}) | ||
install(TARGETS sysu-parser) | ||
target_link_libraries(${PROJECT_NAME} ${LLVM_LIBS}) | ||
target_include_directories(${PROJECT_NAME} PRIVATE ${LLVM_INCLUDE_DIRS}) | ||
install(TARGETS ${PROJECT_NAME}) |
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,6 +1,6 @@ | ||
add_executable(sysu-tester-mizuno_ai mizuno_ai.sysu.c) | ||
target_link_libraries(sysu-tester-mizuno_ai sysu) | ||
project(sysu-tester-mizuno_ai) | ||
add_executable(${PROJECT_NAME} mizuno_ai.sysu.c) | ||
target_link_libraries(${PROJECT_NAME} sysu) | ||
target_include_directories( | ||
sysu-tester-mizuno_ai | ||
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../librarian/include) | ||
install(TARGETS sysu-tester-mizuno_ai) | ||
${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../../librarian/include) | ||
install(TARGETS ${PROJECT_NAME}) |