Skip to content

Commit

Permalink
check-generated-code.nix: Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
lukego committed Jul 28, 2017
1 parent 8ec77f9 commit 076d161
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions check-generated-code.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,10 @@ in

overrideDerivation raptorjit (as:
{
preBuild = ''
pushd src
mkdir old
for f in ${generatedFiles}; do
cp $f old/
done
popd
'' + as.preBuild;
checkPhase = ''
pushd src
mkdir new
for f in ${generatedFiles}; do
cp $f new/
diff -u src/$f src/reusevm/$f
done
echo "Checking that in-tree generated VM code is up-to-date..."
diff -u old new || (echo "Error: Stale generated code"; exit 1)
popd
'';
doCheck = true;
})

0 comments on commit 076d161

Please sign in to comment.