Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion clang/tools/driver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ endif()
add_dependencies(clang clang-resource-headers)

option(CLANG_LINK_FLANG "Create flang install link to clang" ON)
# Only create flang symlink if Flang is not being built
list(FIND LLVM_ENABLE_PROJECTS flang FLANG_TARGET_INDEX)

if(NOT CLANG_LINKS_TO_CREATE)
if(CLANG_LINK_FLANG)
if(CLANG_LINK_FLANG AND "${FLANG_TARGET_INDEX}" EQUAL "-1")
set(CLANG_LINKS_TO_CREATE clang++ clang-cl clang-cpp flang)
else()
set(CLANG_LINKS_TO_CREATE clang++ clang-cl clang-cpp)
Expand Down