Skip to content

Commit ac1f46f

Browse files
committed
Ensure test-suite is working from a build dir
1 parent baa5c88 commit ac1f46f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

flang/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,12 @@ include(GetClangResourceDir)
506506
get_clang_resource_dir(HEADER_BINARY_DIR PREFIX ${LLVM_LIBRARY_OUTPUT_INTDIR}/.. SUBDIR include)
507507
configure_file(
508508
${FLANG_SOURCE_DIR}/include/flang/ISO_Fortran_binding.h
509-
${HEADER_BINARY_DIR}/ISO_Fortran_binding.h)
509+
${HEADER_BINARY_DIR}/ISO_Fortran_binding.h COPYONLY)
510+
511+
# llvm-test-suite fails if it does not find the the file in this location.
512+
configure_file(
513+
${FLANG_SOURCE_DIR}/include/flang/ISO_Fortran_binding.h
514+
${LLVM_RUNTIME_OUTPUT_INTDIR}/../include/flang COPYONLY)
510515

511516
# And also install it into the install area
512517
get_clang_resource_dir(HEADER_INSTALL_DIR SUBDIR include)

0 commit comments

Comments
 (0)