From 887da443f171c4ceabecf13d86028984640b3faa Mon Sep 17 00:00:00 2001 From: Alexander Hill Date: Sat, 26 Apr 2025 15:13:40 -0400 Subject: Getting closer to building rustc --- build-chroot.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/build-chroot.sh b/build-chroot.sh index f3aec9a..71f4203 100755 --- a/build-chroot.sh +++ b/build-chroot.sh @@ -718,13 +718,24 @@ make -j $THREADS make -j $THREADS install cd .. -# mrustc Build +# rustc Build With mrustc Bootstrap tar xf ../sources/mrustc-*.tar* cd mrustc-*/ # FIXME: I have no idea how, but this script somehow invokes the now # non-existent version of clang++ from /maple/tools. Will need to look # into this further. CXX=clang++ exists to fix this temporarily. ~ahill make -j $THREADS CXX=clang++ +make -C tools/minicargo/ -j $THREADS CXX=clang++ +tar xf ../../sources/rustc-*.tar* +# NOTE: minicargo.mk makes a *lot* of assumptions about the build environment +# and most of them are incorrect in our case. As a result, we're stuck +# with building rustc ourselves. ~ahill +./bin/minicargo --vendor-dir rustc-*-src/vendor --output-dir $(pwd)/build ./rustc-*-src/library/std +./bin/minicargo --vendor-dir rustc-*-src/vendor --output-dir $(pwd)/build ./rustc-*-src/library/panic_unwind +./bin/minicargo --vendor-dir rustc-*-src/vendor --output-dir $(pwd)/build ./rustc-*-src/library/test +./bin/minicargo --output-dir $(pwd)/build lib/libproc_macro +./bin/minicargo rustc-*-src/compiler/rustc_driver --vendor-dir rustc-*-src/vendor --output-dir $(pwd)/build -L $(pwd)/build +./bin/minicargo rustc-*-src/src/tools/cargo --vendor-dir rustc-*-src/vendor --output-dir $(pwd)/build -L $(pwd)/build # ... cd .. -- cgit v1.2.3