rustc-1.82: manually backported rustc-1.82 for latest abrowser builds
This commit is contained in:
parent
73229c9749
commit
b6b5bf299f
3 changed files with 62 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
diff --git a/debian/rules b/debian/rules
|
||||
index 5651361f..26738cfd 100755
|
||||
--- a/debian/rules
|
||||
+++ b/debian/rules
|
||||
@@ -70,9 +70,13 @@ ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
|
||||
ifeq ($(DEB_HOST_ARCH),riscv64)
|
||||
NJOBS := -j $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
|
||||
else
|
||||
+ifeq ($(DEB_HOST_ARCH),amd64)
|
||||
+NJOBS := -j 8
|
||||
+else
|
||||
NJOBS := -j 4
|
||||
endif
|
||||
endif
|
||||
+endif
|
||||
RUSTBUILD = RUST_BACKTRACE=1 python3 src/bootstrap/bootstrap.py $(NJOBS)
|
||||
RUSTBUILD_FLAGS = --stage 2 --config debian/config.toml --on-fail env
|
||||
# rust-tidy depends on lots of modules that we strip out of the build.
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
diff --git a/debian/rules b/debian/rules
|
||||
index 5651361f..2cc90e7b 100755
|
||||
--- a/debian/rules
|
||||
+++ b/debian/rules
|
||||
@@ -4,6 +4,7 @@
|
||||
# The build regressed back when LTO was systematized in Ubuntu.
|
||||
# This should be periodically revisited.
|
||||
export DEB_BUILD_MAINT_OPTIONS=optimize=-lto
|
||||
+export PKG_CONFIG=/usr/bin/pkg-config
|
||||
|
||||
include /usr/share/dpkg/pkg-info.mk
|
||||
include /usr/share/dpkg/vendor.mk
|
||||
Loading…
Add table
Add a link
Reference in a new issue