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