1159
|
1 |
diff --git a/build/moz.configure/rust.configure b/build/moz.configure/rust.configure
|
|
2 |
--- a/build/moz.configure/rust.configure
|
|
3 |
+++ b/build/moz.configure/rust.configure
|
1160
|
4 |
@@ -610,6 +610,7 @@ set_config("CARGO_PROFILE_DEV_OPT_LEVEL"
|
1154
|
5 |
"--enable-frame-pointers",
|
1160
|
6 |
path_remapping,
|
|
7 |
path_remappings,
|
|
8 |
+ host
|
1152
|
9 |
)
|
1160
|
10 |
def rust_compile_flags(
|
|
11 |
opt_level,
|
|
12 |
@@ -619,6 +620,7 @@ def rust_compile_flags(
|
|
13 |
frame_pointers,
|
|
14 |
path_remapping,
|
|
15 |
path_remappings,
|
|
16 |
+ host
|
|
17 |
):
|
1097
|
18 |
# Cargo currently supports only two interesting profiles for building:
|
|
19 |
# development and release. Those map (roughly) to --enable-debug and
|
1160
|
20 |
@@ -642,6 +644,8 @@ def rust_compile_flags(
|
1097
|
21 |
|
|
22 |
if debug_symbols:
|
1152
|
23 |
debug_info = "2"
|
1160
|
24 |
+ if host.bitness == 32 or host.cpu == 'aarch64' or host.cpu == 'ppc64' or host.cpu == 's390x':
|
1097
|
25 |
+ debug_info = '1'
|
|
26 |
|
|
27 |
opts = []
|
|
28 |
|