Skip to content

Commit

Permalink
raptorjit.nix: preBuild = 'make bootstrapclean'
Browse files Browse the repository at this point in the history
Start with 'make bootstrapclean' in builds under nix. This removes the
generated code that lives in-tree in the repository to ensure that it
will be rebuilt. This means that the nix build is not dependent on the
in-tree code being up-to-date.

Nix provides all of the build dependencies so there is no issue with
rebuilding the generated code.
  • Loading branch information
lukego committed Jul 8, 2017
1 parent 964cbe4 commit 726cc9c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions raptorjit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ mkDerivation rec {
name = "raptorjit-${version}";
inherit version;
src = source;
preBuild = ''
make bootstrapclean
'';
buildInputs = [ luajit ]; # LuaJIT to bootstrap DynASM
installPhase = ''
mkdir -p $out/bin
Expand Down

0 comments on commit 726cc9c

Please sign in to comment.