diff --git a/programming/language/rust/actions.py b/programming/language/rust/actions.py
index d066b6a282..ecd7993051 100755
--- a/programming/language/rust/actions.py
+++ b/programming/language/rust/actions.py
@@ -11,13 +11,35 @@ from pisi.actionsapi import shelltools
from pisi.actionsapi import get
WorkDir = "rustc-%s-src" %get.srcVERSION()
-crt_ver = "11.0.0"
+
+### ÖNEMLİ NOT: ###
+#LLVM yükseltmelerinden sonra, ilk aşama olarak rust, manuel indirdiğimiz binary rust paketi ile derlenecek. Bu birinci aşama olacak.
+#İkinci aşamada ise derlediğimiz bu rust ile rust tekrar derlenecek.
+#İkinci aşamada aşağıdaki satırlar yoruma çevrilecek.
+
+### IMPORTANT NOTE ###
+#After upgrading LLVM, rust will be built via manually downloaded binary rust distro. This will be phase 1.
+#At phase 2, rust will be built again with this newly built rust.
+#Before phase 2, the lines below will be commented out.
+
+RustBinDir = "rust-%s-x86_64-unknown-linux-gnu" %get.srcVERSION()
+RustcDir = "%s/rustbin" %get.workDIR()
+
+#################################################################
def build():
+ #İkinci aşamada bu satırlar da yoruma çevrilecek.
+ #At phase 2, these lines also will be commented out.
+ shelltools.cd(RustBinDir)
+ shelltools.system("./install.sh --prefix=%s" %RustcDir)
+ shelltools.cd("..")
+ pisitools.dosed("config.toml", "/usr/bin/cargo", RustcDir+"/bin/cargo")
+ pisitools.dosed("config.toml", "/usr/bin/rustc", RustcDir+"/bin/rustc")
+ ####################################################
+
shelltools.export("LC_ALL", "en_US.UTF-8")
shelltools.export("RUST_BACKTRACE", "1")
- shelltools.export("RUST_COMPILER_RT_ROOT", "%s/%s/compiler-rt-%s.src" % (get.workDIR(), WorkDir, crt_ver))
- shelltools.system("python ./x.py build")
+ shelltools.system("python ./x.py dist")
def install():
diff --git a/programming/language/rust/files/bootstrap-config.toml b/programming/language/rust/files/bootstrap-config.toml
index a83d775480..6f6372094a 100644
--- a/programming/language/rust/files/bootstrap-config.toml
+++ b/programming/language/rust/files/bootstrap-config.toml
@@ -6,6 +6,8 @@ link-shared = true
[build]
target = ["x86_64-unknown-linux-gnu"]
python = "/usr/bin/python3"
+cargo = "/usr/bin/cargo"
+rustc = "/usr/bin/rustc"
extended = true
sanitizers = false
profiler = true
diff --git a/programming/language/rust/pspec.xml b/programming/language/rust/pspec.xml
index c3b07813ac..ab2739879a 100755
--- a/programming/language/rust/pspec.xml
+++ b/programming/language/rust/pspec.xml
@@ -13,11 +13,14 @@
Systems programming language focused on safety, speed and concurrency
Systems programming language focused on safety, speed and concurrency
https://static.rust-lang.org/dist/rustc-1.48.0-src.tar.gz
- https://github.com/llvm/llvm-project/releases/download/llvmorg-11.0.0/compiler-rt-11.0.0.src.tar.xz
+
+
+ https://static.rust-lang.org/dist/rust-1.48.0-x86_64-unknown-linux-gnu.tar.gz
bootstrap-config.toml
+
perl
llvm
cmake