Skip to content

Commit 55a2f6d

Browse files
committed
Merge branch 'users/meinersbur/flang_runtime' into users/meinersbur/flang_runtime_shared
2 parents c6c168a + c7d6b01 commit 55a2f6d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

flang/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,13 @@ include(GetClangResourceDir)
557557
get_clang_resource_dir(HEADER_BINARY_DIR PREFIX ${LLVM_LIBRARY_OUTPUT_INTDIR}/.. SUBDIR include)
558558
configure_file(
559559
${FLANG_SOURCE_DIR}/include/flang/ISO_Fortran_binding.h
560-
${HEADER_BINARY_DIR}/ISO_Fortran_binding.h)
560+
${HEADER_BINARY_DIR}/ISO_Fortran_binding.h COPYONLY)
561+
562+
# llvm-test-suite explicitly searches for this header file
563+
# (`ISO_FORTRAN_C_HEADER`), cannot hide it in Clang's resource dir.
564+
configure_file(
565+
${FLANG_SOURCE_DIR}/include/flang/ISO_Fortran_binding.h
566+
${LLVM_RUNTIME_OUTPUT_INTDIR}/../include/flang/ISO_Fortran_binding.h COPYONLY)
561567

562568
# And also install it into the install area
563569
get_clang_resource_dir(HEADER_INSTALL_DIR SUBDIR include)

0 commit comments

Comments
 (0)