summaryrefslogtreecommitdiff
path: root/experimental/mrustc/mrustc-use-cached-tarball.patch
blob: 9d66001bda18e8692b47f44534edd14e431a5bee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 $@