Skip to content

Commit

Permalink
Ensure test-suite is working from a build dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Meinersbur committed Dec 7, 2024
1 parent baa5c88 commit ac1f46f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flang/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,12 @@ include(GetClangResourceDir)
get_clang_resource_dir(HEADER_BINARY_DIR PREFIX ${LLVM_LIBRARY_OUTPUT_INTDIR}/.. SUBDIR include)
configure_file(
${FLANG_SOURCE_DIR}/include/flang/ISO_Fortran_binding.h
${HEADER_BINARY_DIR}/ISO_Fortran_binding.h)
${HEADER_BINARY_DIR}/ISO_Fortran_binding.h COPYONLY)

# llvm-test-suite fails if it does not find the the file in this location.
configure_file(
${FLANG_SOURCE_DIR}/include/flang/ISO_Fortran_binding.h
${LLVM_RUNTIME_OUTPUT_INTDIR}/../include/flang COPYONLY)

# And also install it into the install area
get_clang_resource_dir(HEADER_INSTALL_DIR SUBDIR include)
Expand Down

0 comments on commit ac1f46f

Please sign in to comment.