diff options
Diffstat (limited to 'experimental/mrustc/mrustc-use-cached-tarball.patch')
-rw-r--r-- | experimental/mrustc/mrustc-use-cached-tarball.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/experimental/mrustc/mrustc-use-cached-tarball.patch b/experimental/mrustc/mrustc-use-cached-tarball.patch new file mode 100644 index 000000000..9d66001bd --- /dev/null +++ b/experimental/mrustc/mrustc-use-cached-tarball.patch @@ -0,0 +1,20 @@ +diff -ur a/minicargo.mk b/minicargo.mk +--- a/minicargo.mk 2024-12-17 05:12:59.834050504 +0000 ++++ b/minicargo.mk 2024-12-17 05:22:54.039140295 +0000 +@@ -204,15 +204,7 @@ + # + # rustc (with std/cargo) source download + # +-RUSTC_SRC_TARBALL := rustc-$(RUSTC_VERSION)-src.tar.gz +-$(RUSTC_SRC_TARBALL): +- @echo [CURL] $@ +- @rm -f $@ +- @curl -sS https://static.rust-lang.org/dist/$@ -o $@ +-rustc-$(RUSTC_VERSION)-src/extracted: $(RUSTC_SRC_TARBALL) +- tar -xf $(RUSTC_SRC_TARBALL) +- touch $@ +-$(RUSTC_SRC_DL): rustc-$(RUSTC_VERSION)-src/extracted rustc-$(RUSTC_VERSION)-src.patch ++$(RUSTC_SRC_DL): rustc-$(RUSTC_VERSION)-src.patch + cd $(RUSTCSRC) && patch -p0 < ../rustc-$(RUSTC_VERSION)-src.patch; + touch $@ + |