rust pass 2

This commit is contained in:
Rmys
2022-12-24 19:59:31 +03:00
parent a7c99f2c42
commit c207950e74
3 changed files with 15 additions and 11 deletions
+10 -9
View File
@@ -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")