diff options
| author | Alexander Hill <ahill@breadpudding.dev> | 2025-04-26 15:13:40 -0400 |
|---|---|---|
| committer | Alexander Hill <ahill@breadpudding.dev> | 2025-04-26 15:13:40 -0400 |
| commit | 887da443f171c4ceabecf13d86028984640b3faa (patch) | |
| tree | adb76dace6c5f7437920182a028928117e7fba69 /build-chroot.sh | |
| parent | 97afcda6e6a98adfdba5ea3b72a2bed5cd05c69a (diff) | |
Getting closer to building rustc
Diffstat (limited to 'build-chroot.sh')
| -rwxr-xr-x | build-chroot.sh | 13 |
1 files changed, 12 insertions, 1 deletions
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 .. |
