From 9168f32524957e16801b51e5a9b0f52e35d926b5 Mon Sep 17 00:00:00 2001 From: rina Date: Fri, 9 Feb 2024 12:06:22 +1000 Subject: [PATCH] llvm-rtti-eh: install Target includes as well. --- llvm-translator/llvm-rtti-eh.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/llvm-translator/llvm-rtti-eh.nix b/llvm-translator/llvm-rtti-eh.nix index 9037a9f..b14ce7a 100644 --- a/llvm-translator/llvm-rtti-eh.nix +++ b/llvm-translator/llvm-rtti-eh.nix @@ -7,4 +7,11 @@ llvmPackages.libllvm.overrideAttrs (final: prev: { "-DLLVM_TARGETS_TO_BUILD=X86;AArch64;ARM" ]; doCheck = false; + + # install Target .inc files from build directory for lifter project. + postFixup = '' + cd /build/$sourceRoot/build/lib && file Target + find Target -name '*.inc' -print0 \ + | xargs -0 -I{} cp -v --no-clobber --parents {} $dev/include + ''; })