1 # Infrastructure to build flang driver entry point. Flang driver depends on
4 # Set your project compile flags.
5 link_directories(${LLVM_LIBRARY_DIR})
7 set( LLVM_LINK_COMPONENTS
8 ${LLVM_TARGETS_TO_BUILD}
14 add_flang_tool(flang-new
19 target_link_libraries(flang-new
25 clang_target_link_libraries(flang-new
31 option(FLANG_PLUGIN_SUPPORT "Build Flang with plugin support." ON)
33 # Enable support for plugins, which need access to symbols from flang-new
34 if(FLANG_PLUGIN_SUPPORT)
35 export_executable_symbols_for_plugins(flang-new)
38 install(TARGETS flang-new DESTINATION "${CMAKE_INSTALL_BINDIR}")