Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6378d7cc7
|
+14
-1
@@ -29,7 +29,6 @@ package mrustc {
|
||||
writable = true;
|
||||
chmod = true;
|
||||
|
||||
minimal = true;
|
||||
exec = make {
|
||||
inPlace = true;
|
||||
skipConfigure = true;
|
||||
@@ -40,6 +39,8 @@ sed -i 's/\$(shell git symbolic-ref -q --short HEAD || git describe --tags --exa
|
||||
sed -i 's/\$(shell git diff-index --quiet HEAD; echo $$?)/0/' Makefile
|
||||
sed -i 's/\$(shell env LC_TIME=C date -u +"%a, %e %b %Y %T +0000")/Thu, 1 Jan 1970 00:00:00 +0000/' Makefile
|
||||
|
||||
export CC=gcc
|
||||
export PARLEVEL=`+jobsE+`
|
||||
export RUSTC_SOURCE='../extra/rustc-bootstrap-source'
|
||||
export RUSTC_VERSION="$(cut -d ' ' -f 1 "$RUSTC_SOURCE/version")"
|
||||
export MRUSTC_TARGET_VER="$(cut -d '.' -f 1,2 <<< "$RUSTC_VERSION")"
|
||||
@@ -50,15 +51,27 @@ ln -s "$RUSTC_SOURCE" "rustc-$RUSTC_VERSION-src"
|
||||
`;
|
||||
preCheck = `
|
||||
make -f minicargo.mk LIBS
|
||||
make local_tests
|
||||
`;
|
||||
check = [ "test" ];
|
||||
|
||||
install = `
|
||||
OUTDIR="output-$RUSTC_VERSION"
|
||||
make -f minicargo.mk "$OUTDIR/rustc"
|
||||
make -f minicargo.mk "$OUTDIR/cargo"
|
||||
make -C run_rustc
|
||||
`;
|
||||
};
|
||||
|
||||
inputs = [
|
||||
bash,
|
||||
patch,
|
||||
cmake,
|
||||
python,
|
||||
|
||||
// mrustc requires buggy gcc behaviour
|
||||
gcc,
|
||||
|
||||
kernel-headers,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user