rust pass 2
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -15,12 +15,12 @@
|
||||
<Archive sha1sum="c61bebe008f78739fe737c4198ed844d7286f9c4" type="targz">https://static.rust-lang.org/dist/rustc-1.66.0-src.tar.gz</Archive>
|
||||
<!-- Not: İkinci aşamada aşağıdaki satıra ihtiyaç olmayacak. Yoruma çevrilebilir. -->
|
||||
<!-- The line below will be unnecessary at phase 2, can be commented out. -->
|
||||
<Archive sha1sum="a772ea6cd3264eade11613c0ca4aa70c9d89eee3" type="targz" target="rustc-1.66.0-src">https://static.rust-lang.org/dist/rust-1.66.0-x86_64-unknown-linux-gnu.tar.gz</Archive>
|
||||
<!-- <Archive sha1sum="a772ea6cd3264eade11613c0ca4aa70c9d89eee3" type="targz" target="rustc-1.66.0-src">https://static.rust-lang.org/dist/rust-1.66.0-x86_64-unknown-linux-gnu.tar.gz</Archive> -->
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile target="config.toml">bootstrap-config.toml</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
<BuildDependencies>
|
||||
<Dependency versionFrom="1.64.0">rust</Dependency>
|
||||
<Dependency versionFrom="1.66.0">rust</Dependency>
|
||||
<Dependency>perl</Dependency>
|
||||
<Dependency versionFrom="14.0.6">llvm</Dependency>
|
||||
<Dependency>cmake</Dependency>
|
||||
|
||||
Reference in New Issue
Block a user