From: LLVM Packaging Team Date: Sat, 4 May 2024 05:27:41 +0000 (+0200) Subject: libclc-fix-prepare_builtins-rpath X-Git-Tag: archive/raspbian/1%16.0.6-27+rpi1~1^2~23 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=56e48b9efeaf1d381b1968ec020da000cb05749c;p=llvm-toolchain-16.git libclc-fix-prepare_builtins-rpath set rpath for prepare_builtins build utility to find correct stage2 libs at runtime when executed as part of a build Gbp-Pq: Name libclc-fix-prepare_builtins-rpath.diff --- diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt index f712100689..b67b1ebd54 100644 --- a/libclc/CMakeLists.txt +++ b/libclc/CMakeLists.txt @@ -120,6 +120,9 @@ add_llvm_executable( prepare_builtins utils/prepare-builtins.cpp ) target_compile_definitions( prepare_builtins PRIVATE ${LLVM_VERSION_DEFINE} ) # These were not properly reported in early LLVM and we don't need them target_compile_options( prepare_builtins PRIVATE -fno-rtti -fno-exceptions ) +set_target_properties( prepare_builtins + PROPERTIES INSTALL_RPATH "${LLVM_LIBDIR}" + BUILD_WITH_INSTALL_RPATH "ON") # Setup arch devices set( r600--_devices cedar cypress barts cayman )