Skip to content

Commit c7d6b01

Browse files
committed
Re-apply llvm-test-suite workaround
It actually is needed to run llvm-test-suite from a bootstrap build clang/flang.
1 parent 1ee1300 commit c7d6b01

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)