forked from snabbco/snabb
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request snabbco#70 from lukego/split-build
Add VM generated code to repo, support simplified build
- Loading branch information
Showing
17 changed files
with
11,188 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
language: nix | ||
sudo: false | ||
env: | ||
- test=test-O3 | ||
- test=test-O2 | ||
- test=test-O1 | ||
- test=test-nojit | ||
- nix-build -A test-O3 | ||
- nix-build -A test-O2 | ||
- nix-build -A test-O1 | ||
- nix-build -A test-nojit | ||
- nix-build -A check-generated-code --arg check true | ||
script: | ||
- nix-build -A $test | ||
- $test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Check that generated sources match the repo version. | ||
{ pkgs, raptorjit }: | ||
with pkgs; with lib; | ||
|
||
# Generated files that are kept in tree. | ||
let generatedFiles = | ||
"lj_bcdef.h lj_ffdef.h lj_libdef.h lj_recdef.h lj_folddef.h host/buildvm_arch.h"; | ||
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/ | ||
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; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
luajit | ||
lj_bcdef.h | ||
lj_ffdef.h | ||
lj_libdef.h | ||
lj_recdef.h | ||
lj_folddef.h | ||
lj_vm.[sS] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
minilua | ||
buildvm | ||
buildvm_arch.h |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.