You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
501 B
31 lines
501 B
# Infrastructure to build flang driver entry point. Flang driver depends on
|
|
# LLVM libraries.
|
|
|
|
# Set your project compile flags.
|
|
link_directories(${LLVM_LIBRARY_DIR})
|
|
|
|
set( LLVM_LINK_COMPONENTS
|
|
${LLVM_TARGETS_TO_BUILD}
|
|
Option
|
|
Support
|
|
)
|
|
|
|
add_flang_tool(flang-new
|
|
driver.cpp
|
|
fc1_main.cpp
|
|
)
|
|
|
|
target_link_libraries(flang-new
|
|
PRIVATE
|
|
flangFrontend
|
|
flangFrontendTool
|
|
)
|
|
|
|
clang_target_link_libraries(flang-new
|
|
PRIVATE
|
|
clangDriver
|
|
clangBasic
|
|
)
|
|
|
|
install(TARGETS flang-new DESTINATION bin)
|