Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix llvm backend bins in the k derivation #3819

Merged
merged 2 commits into from
Nov 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion nix/k.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ let
ln -sf ${llvm-backend}/include/kllvm-c $out/include/
ln -sf ${llvm-backend}/lib/kllvm $out/lib/
ln -sf ${llvm-backend}/lib/scripts $out/lib/
ln -sf ${llvm-backend}/bin/* $out/bin/

ln -sf ${haskell-backend}/bin/kore-rpc $out/bin/kore-rpc
ln -sf ${haskell-backend}/bin/kore-exec $out/bin/kore-exec
Expand All @@ -80,6 +79,18 @@ let
}"''
}
done

${
lib.optionalString (current-llvm-kompile-libs != [ ]) ''
for prog in ${llvm-backend}/bin/*
do
makeWrapper $prog $out/bin/$(basename $prog) \
--set NIX_LLVM_KOMPILE_LIBS "${
lib.strings.concatStringsSep " "
(lib.lists.unique current-llvm-kompile-libs)
}"
done''
}
'';

preFixup = lib.optionalString (!stdenv.isDarwin) ''
Expand Down
Loading