Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cc55369b54
|
+10
-9
@@ -27,7 +27,6 @@ package mrustc {
|
|||||||
"0002-Revert-HIR-Typecheck-Optimise-by-doing-multiple-chec.patch",
|
"0002-Revert-HIR-Typecheck-Optimise-by-doing-multiple-chec.patch",
|
||||||
];
|
];
|
||||||
extra = [ rustc-bootstrap-source ];
|
extra = [ rustc-bootstrap-source ];
|
||||||
minimal = true;
|
|
||||||
|
|
||||||
enterSource = true;
|
enterSource = true;
|
||||||
writable = true;
|
writable = true;
|
||||||
@@ -37,9 +36,7 @@ package mrustc {
|
|||||||
inPlace = true;
|
inPlace = true;
|
||||||
skipConfigure = true;
|
skipConfigure = true;
|
||||||
preMake = `
|
preMake = `
|
||||||
ln -sf gcc /system/bin/cc
|
export CC=gcc CXX=g++
|
||||||
ln -sf g++ /system/bin/c++
|
|
||||||
|
|
||||||
export PARLEVEL=`+jobsE+`
|
export PARLEVEL=`+jobsE+`
|
||||||
export RUSTC_SOURCE='../extra/rustc-bootstrap-source'
|
export RUSTC_SOURCE='../extra/rustc-bootstrap-source'
|
||||||
export RUSTC_VERSION="$(cut -d ' ' -f 1 "$RUSTC_SOURCE/version")"
|
export RUSTC_VERSION="$(cut -d ' ' -f 1 "$RUSTC_SOURCE/version")"
|
||||||
@@ -62,20 +59,24 @@ make local_tests
|
|||||||
check = [ "test" ];
|
check = [ "test" ];
|
||||||
|
|
||||||
install = `
|
install = `
|
||||||
LLVM="$(which llvm-config)"
|
|
||||||
OUTDIR="output-$RUSTC_VERSION"
|
OUTDIR="output-$RUSTC_VERSION"
|
||||||
make -f minicargo.mk LLVM_CONFIG="$LLVM" "$OUTDIR/rustc"
|
make -f minicargo.mk "$OUTDIR/rustc"
|
||||||
make -f minicargo.mk LLVM_CONFIG="$LLVM" "$OUTDIR/cargo"
|
make -f minicargo.mk "$OUTDIR/cargo"
|
||||||
make -C LLVM_CONFIG="$LLVM" run_rustc
|
make -C run_rustc
|
||||||
`;
|
`;
|
||||||
};
|
};
|
||||||
|
|
||||||
inputs = [
|
inputs = [
|
||||||
bash,
|
bash,
|
||||||
patch,
|
patch,
|
||||||
llvm,
|
cmake,
|
||||||
|
pkg-config,
|
||||||
|
perl,
|
||||||
|
python,
|
||||||
|
|
||||||
// mrustc requires buggy gcc behaviour
|
// mrustc requires buggy gcc behaviour
|
||||||
gcc,
|
gcc,
|
||||||
|
|
||||||
|
kernel-headers,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user