[flang-commits] [flang] 11837af - [flang][nfc] Fix Windows build
Andrzej Warzynski via flang-commits
flang-commits at lists.llvm.org
Tue May 31 13:59:56 PDT 2022
Author: Andrzej Warzynski
Date: 2022-05-31T20:59:44Z
New Revision: 11837af03d0fe88657ffdc06ba326c4b69a7da1e
URL: https://github.com/llvm/llvm-project/commit/11837af03d0fe88657ffdc06ba326c4b69a7da1e
DIFF: https://github.com/llvm/llvm-project/commit/11837af03d0fe88657ffdc06ba326c4b69a7da1e.diff
LOG: [flang][nfc] Fix Windows build
* Breaking change: https://reviews.llvm.org/D125832
* Buildbot failure: https://lab.llvm.org/buildbot/#/builders/172/builds/13123
Sending this without a review - this is a rather straightforward fix.
Added:
Modified:
flang/tools/f18/CMakeLists.txt
Removed:
################################################################################
diff --git a/flang/tools/f18/CMakeLists.txt b/flang/tools/f18/CMakeLists.txt
index 3e96c84c439b7..f378301d4ef72 100644
--- a/flang/tools/f18/CMakeLists.txt
+++ b/flang/tools/f18/CMakeLists.txt
@@ -56,9 +56,9 @@ if (NOT WIN32)
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/flang-to-external-fc ${CMAKE_BINARY_DIR}/bin)
add_custom_target(flang-to-external-fc ALL DEPENDS ${CMAKE_BINARY_DIR}/bin/flang-to-external-fc)
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)
endif()
-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)
# TODO Move this to a more suitable location
file(COPY ${FLANG_SOURCE_DIR}/module/omp_lib.h DESTINATION "${CMAKE_BINARY_DIR}/include/flang/OpenMP/" FILE_PERMISSIONS OWNER_READ OWNER_WRITE)
More information about the flang-commits
mailing list