Skip to content

Commit

Permalink
llvm-custom: avoid NIX_BUILD_TOP
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Oct 31, 2024
1 parent 31e0759 commit 5b7cece
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions llvm-translator/llvm-custom.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ let
doCheck = false;

# install Target .inc files from build directory for lifter project.
postFixup = ''
cd $NIX_BUILD_TOP/$sourceRoot/build/lib && file Target
# at this point, we should within the build artifact directory
postBuild = ''
cd ./lib && file Target
find Target -name '*.inc' -print0 \
| xargs -0 -I{} cp -v --no-clobber --parents {} $dev/include
'';
Expand Down

0 comments on commit 5b7cece

Please sign in to comment.