forked from pool/MozillaFirefox
4da575923b
MFSA 2021-?? (boo#1188891) - requires * rustc/cargo >= 1.51 * NSPR >= 4.32 * NSS >= 3.68 - force-disable webrender on BE platforms OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=926
29 lines
876 B
Diff
29 lines
876 B
Diff
diff --git a/build/moz.configure/rust.configure b/build/moz.configure/rust.configure
|
|
--- a/build/moz.configure/rust.configure
|
|
+++ b/build/moz.configure/rust.configure
|
|
@@ -610,6 +610,7 @@ set_config("CARGO_PROFILE_DEV_OPT_LEVEL"
|
|
"--enable-frame-pointers",
|
|
path_remapping,
|
|
path_remappings,
|
|
+ host
|
|
)
|
|
def rust_compile_flags(
|
|
opt_level,
|
|
@@ -619,6 +620,7 @@ def rust_compile_flags(
|
|
frame_pointers,
|
|
path_remapping,
|
|
path_remappings,
|
|
+ host
|
|
):
|
|
# Cargo currently supports only two interesting profiles for building:
|
|
# development and release. Those map (roughly) to --enable-debug and
|
|
@@ -642,6 +644,8 @@ def rust_compile_flags(
|
|
|
|
if debug_symbols:
|
|
debug_info = "2"
|
|
+ if host.bitness == 32 or host.cpu == 'aarch64' or host.cpu == 'ppc64' or host.cpu == 's390x':
|
|
+ debug_info = '1'
|
|
|
|
opts = []
|
|
|