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 # These libraries are used in the linker invocation generated by the driver
20 # (i.e. when constructing the linker job). Without them the driver would be
21 # unable to generate executables.
27 target_link_libraries(flang-new
33 clang_target_link_libraries(flang-new
39 option(FLANG_PLUGIN_SUPPORT "Build Flang with plugin support." ON)
41 # Enable support for plugins, which need access to symbols from flang-new
42 if(FLANG_PLUGIN_SUPPORT)
43 export_executable_symbols_for_plugins(flang-new)
46 install(TARGETS flang-new DESTINATION "${CMAKE_INSTALL_BINDIR}")