summaryrefslogtreecommitdiff
path: root/build-chroot.sh
diff options
context:
space:
mode:
authorAlexander Hill <ahill@breadpudding.dev>2025-05-04 15:10:03 -0400
committerAlexander Hill <ahill@breadpudding.dev>2025-05-04 15:10:03 -0400
commit715c96179817decfbe001681c9f0ed49e22ea88b (patch)
treead27016766b7a6543925df61b5682126052c7caa /build-chroot.sh
parent3dba0138937542c8753d9d14c25f151eb64ad1a9 (diff)
Updated openssl-sys and built cargo
Now rustc and cargo are segfaulting. Fantastic.
Diffstat (limited to 'build-chroot.sh')
-rwxr-xr-xbuild-chroot.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/build-chroot.sh b/build-chroot.sh
index 9cb42f4..328bb4a 100755
--- a/build-chroot.sh
+++ b/build-chroot.sh
@@ -738,7 +738,7 @@ make -j $THREADS
make -j $THREADS install
cd ..
-# rustc Build With mrustc Bootstrap
+# rustc Build With mrustc Bootstrap (Thank you Mutabah for all of your help!)
tar xf ../sources/mrustc-*.tar*
cd mrustc-*/
# NOTE: Using types such as uint8_t without stdint.h is not portable. ~ahill
@@ -832,7 +832,14 @@ RUSTC_INSTALL_BINDIR=bin \
-L $(pwd)/build-std \
--manifest-overrides rustc-$RUST_VERSION-overrides.toml \
-j $THREADS \
- rustc-$RUST_VERSION-src/compiler/rustc_driver
+ rustc-$RUST_VERSION-src/compiler/rustc
+# NOTE: openssl-sys supports LibreSSL, but the version shipped with this version
+# of rustc only supports up to LibreSSL 3.8.0. We are manually updating
+# this crate so cargo can be built without downgrading LibreSSL. ~ahill
+cd rustc-$RUST_VERSION-src/vendor
+rm -rf openssl-sys*
+tar xf ../../../../sources/openssl-sys-*.crate
+cd ../..
./bin/minicargo \
--vendor-dir rustc-$RUST_VERSION-src/vendor \
--output-dir $(pwd)/build-cargo \
@@ -840,7 +847,8 @@ RUSTC_INSTALL_BINDIR=bin \
--manifest-overrides rustc-$RUST_VERSION-overrides.toml \
-j $THREADS \
rustc-$RUST_VERSION-src/src/tools/cargo
-# ...
+cp build-rustc/rustc_main /bin/rustc
+cp build-cargo/cargo /bin/
cd ..
# Basic Configuration