[flang-commits] [flang] c7c76ec - [flang] Make sure that `flang` is also installed

Andrzej Warzynski via flang-commits flang-commits at lists.llvm.org
Wed Jun 1 01:54:02 PDT 2022


Author: Andrzej Warzynski
Date: 2022-06-01T08:52:02Z
New Revision: c7c76ecd1a535ecfaf3bfb93e385fe7d9c4d10b4

URL: https://github.com/llvm/llvm-project/commit/c7c76ecd1a535ecfaf3bfb93e385fe7d9c4d10b4
DIFF: https://github.com/llvm/llvm-project/commit/c7c76ecd1a535ecfaf3bfb93e385fe7d9c4d10b4.diff

LOG: [flang] Make sure that `flang` is also installed

This patch makes sure that `flang` (symlink to `flang-to-external-fc`)
is installed alongside other Flang tools. Fixes build failures in
clang-aarch64-full-2stage [1] introduced after merging
https://reviews.llvm.org/D125832.

[1] https://lab.llvm.org/buildbot/#/builders/179/builds/3799

Differential Revision: https://reviews.llvm.org/D126760

Added: 
    

Modified: 
    flang/tools/f18/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/flang/tools/f18/CMakeLists.txt b/flang/tools/f18/CMakeLists.txt
index f378301d4ef72..85d0ad89dd037 100644
--- a/flang/tools/f18/CMakeLists.txt
+++ b/flang/tools/f18/CMakeLists.txt
@@ -58,6 +58,7 @@ if (NOT WIN32)
   install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/flang-to-external-fc DESTINATION "${CMAKE_INSTALL_BINDIR}")
   add_custom_target(flang-slink ALL DEPENDS ${CMAKE_BINARY_DIR}/bin/flang-to-external-fc COMMAND ${CMAKE_COMMAND} -E create_symlink
     ${CMAKE_BINARY_DIR}/bin/flang-to-external-fc ${CMAKE_BINARY_DIR}/bin/flang)
+  install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/flang DESTINATION "${CMAKE_INSTALL_BINDIR}")
 endif()
 
 # TODO Move this to a more suitable location


        


More information about the flang-commits mailing list