prepare firefox to be buildable with rustc 1.45.0
https://bugzilla.mozilla.org/show_bug.cgi?id=1640982
This commit is contained in:
parent
93b61513f2
commit
1ef635952f
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-config_makefiles_rust_mk,v 1.1 2020/07/21 13:21:36 semarie Exp $
|
||||
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=1644409
|
||||
|
||||
Index: config/makefiles/rust.mk
|
||||
--- config/makefiles/rust.mk.orig
|
||||
+++ config/makefiles/rust.mk
|
||||
@@ -48,6 +48,7 @@ ifndef DEVELOPER_OPTIONS
|
||||
ifndef MOZ_DEBUG_RUST
|
||||
# Enable link-time optimization for release builds.
|
||||
cargo_rustc_flags += -C lto
|
||||
+export CARGO_PROFILE_RELEASE_LTO=yes
|
||||
endif
|
||||
endif
|
||||
|
15
www/firefox-esr/patches/patch-config_makefiles_rust_mk
Normal file
15
www/firefox-esr/patches/patch-config_makefiles_rust_mk
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-config_makefiles_rust_mk,v 1.1 2020/07/21 13:21:36 semarie Exp $
|
||||
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=1640982
|
||||
|
||||
Index: config/makefiles/rust.mk
|
||||
--- config/makefiles/rust.mk.orig
|
||||
+++ config/makefiles/rust.mk
|
||||
@@ -48,6 +48,7 @@ ifndef DEVELOPER_OPTIONS
|
||||
ifndef MOZ_DEBUG_RUST
|
||||
# Enable link-time optimization for release builds.
|
||||
cargo_rustc_flags += -C lto
|
||||
+export CARGO_PROFILE_RELEASE_LTO=yes
|
||||
endif
|
||||
endif
|
||||
|
@ -1,16 +1,18 @@
|
||||
$OpenBSD: patch-config_makefiles_rust_mk,v 1.1 2020/06/30 14:00:25 landry Exp $
|
||||
$OpenBSD: patch-config_makefiles_rust_mk,v 1.2 2020/07/21 13:21:36 semarie Exp $
|
||||
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=1644409
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=1640982
|
||||
|
||||
Index: config/makefiles/rust.mk
|
||||
--- config/makefiles/rust.mk.orig
|
||||
+++ config/makefiles/rust.mk
|
||||
@@ -61,7 +61,7 @@ ifndef MOZ_DEBUG_RUST
|
||||
@@ -61,7 +61,8 @@ ifndef MOZ_DEBUG_RUST
|
||||
# Enable link-time optimization for release builds, but not when linking
|
||||
# gkrust_gtest.
|
||||
ifeq (,$(findstring gkrust_gtest,$(RUST_LIBRARY_FILE)))
|
||||
-cargo_rustc_flags += -Clto
|
||||
+cargo_rustc_flags += -Clto=thin
|
||||
+export CARGO_PROFILE_RELEASE_LTO=thin
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-config_makefiles_rust_mk,v 1.1 2020/07/21 13:21:36 semarie Exp $
|
||||
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=1644409
|
||||
|
||||
Index: config/makefiles/rust.mk
|
||||
--- config/makefiles/rust.mk.orig
|
||||
+++ config/makefiles/rust.mk
|
||||
@@ -48,6 +48,7 @@ ifndef DEVELOPER_OPTIONS
|
||||
ifndef MOZ_DEBUG_RUST
|
||||
# Enable link-time optimization for release builds.
|
||||
cargo_rustc_flags += -C lto
|
||||
+export CARGO_PROFILE_RELEASE_LTO=yes
|
||||
endif
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user