diff --git a/programming/language/rust/actions.py b/programming/language/rust/actions.py index c05a88dba2..92145b4d00 100755 --- a/programming/language/rust/actions.py +++ b/programming/language/rust/actions.py @@ -22,28 +22,29 @@ WorkDir = "rustc-%s-src" %get.srcVERSION() #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() +# 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.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.system("python ./x.py build") + shelltools.system("python3 ./x.py build") def install(): - shelltools.system("DESTDIR=%s python ./x.py install" % get.installDIR()) + # shelltools.export("RUST_BACKTRACE", "1") + shelltools.system("DESTDIR=%s python3 ./x.py install" % get.installDIR()) #pisitools.insinto("/", "build/x86_64-unknown-linux-gnu/stage0/etc") #pisitools.insinto("/usr", "build/x86_64-unknown-linux-gnu/stage0/bin") diff --git a/programming/language/rust/files/bootstrap-config.toml b/programming/language/rust/files/bootstrap-config.toml index 6f6372094a..79e9974b6e 100644 --- a/programming/language/rust/files/bootstrap-config.toml +++ b/programming/language/rust/files/bootstrap-config.toml @@ -12,6 +12,8 @@ extended = true sanitizers = false profiler = true vendor = true +tools = ["cargo", "rls", "clippy", "rustfmt", "analysis", "src", "rust-demangler"] +# docs = false [install] prefix = "/usr" @@ -24,6 +26,7 @@ debuginfo-level-std = 2 channel = "stable" rpath = false +# backtrace-on-ice = true codegen-tests = false [target.x86_64-unknown-linux-gnu] diff --git a/programming/language/rust/pspec.xml b/programming/language/rust/pspec.xml index 8c9071aa70..72a6f26e7b 100755 --- a/programming/language/rust/pspec.xml +++ b/programming/language/rust/pspec.xml @@ -15,12 +15,12 @@ https://static.rust-lang.org/dist/rustc-1.66.0-src.tar.gz - https://static.rust-lang.org/dist/rust-1.66.0-x86_64-unknown-linux-gnu.tar.gz + bootstrap-config.toml - rust + rust perl llvm cmake