peterwaller-arm created this revision. peterwaller-arm added reviewers: MattDevereau, benmxwl-arm, c-rhodes. Herald added subscribers: ctetreau, kristof.beyls, tschuett. Herald added a project: All. peterwaller-arm requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
arm_neon_sve_bridge.h is not generated, so the rules which ensure the generated files get copied into the installation prefix don't apply to this one. Add it to the aarch64_only_files set instead, which ensures it ends up both in the build directory and the installation directory. Tested with build targets `clang-resource-headers` and `install-clang-resource-headers`. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D137239 Files: clang/lib/Headers/CMakeLists.txt Index: clang/lib/Headers/CMakeLists.txt =================================================================== --- clang/lib/Headers/CMakeLists.txt +++ clang/lib/Headers/CMakeLists.txt @@ -33,6 +33,7 @@ set(aarch64_only_files arm64intr.h + arm_neon_sve_bridge.h ) set(cuda_files @@ -326,10 +327,6 @@ clang_generate_header(-gen-arm-mve-header arm_mve.td arm_mve.h) # Generate arm_cde.h clang_generate_header(-gen-arm-cde-header arm_cde.td arm_cde.h) - # Copy arm_neon_sve_bridge.h - copy_header_to_output_dir(${CMAKE_CURRENT_SOURCE_DIR} - arm_neon_sve_bridge.h - ) # Add headers to target specific lists list(APPEND arm_common_generated_files @@ -345,7 +342,6 @@ list(APPEND aarch64_only_generated_files "${CMAKE_CURRENT_BINARY_DIR}/arm_sve.h" "${CMAKE_CURRENT_BINARY_DIR}/arm_bf16.h" - "${output_dir}/arm_neon_sve_bridge.h" ) endif() if(RISCV IN_LIST LLVM_TARGETS_TO_BUILD)
Index: clang/lib/Headers/CMakeLists.txt =================================================================== --- clang/lib/Headers/CMakeLists.txt +++ clang/lib/Headers/CMakeLists.txt @@ -33,6 +33,7 @@ set(aarch64_only_files arm64intr.h + arm_neon_sve_bridge.h ) set(cuda_files @@ -326,10 +327,6 @@ clang_generate_header(-gen-arm-mve-header arm_mve.td arm_mve.h) # Generate arm_cde.h clang_generate_header(-gen-arm-cde-header arm_cde.td arm_cde.h) - # Copy arm_neon_sve_bridge.h - copy_header_to_output_dir(${CMAKE_CURRENT_SOURCE_DIR} - arm_neon_sve_bridge.h - ) # Add headers to target specific lists list(APPEND arm_common_generated_files @@ -345,7 +342,6 @@ list(APPEND aarch64_only_generated_files "${CMAKE_CURRENT_BINARY_DIR}/arm_sve.h" "${CMAKE_CURRENT_BINARY_DIR}/arm_bf16.h" - "${output_dir}/arm_neon_sve_bridge.h" ) endif() if(RISCV IN_LIST LLVM_TARGETS_TO_BUILD)
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits