Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/firefox/rust-static-disable-network-test-on-static-libraries.patch
blob: 95c2df7e58a1be1dd0a9ae5d07fedff186b240ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
diff --git a/config/makefiles/rust.mk b/config/makefiles/rust.mk
index 58606db50f..9c4d5b9279 100644
--- a/config/makefiles/rust.mk
+++ b/config/makefiles/rust.mk
@@ -305,17 +305,17 @@ $(RUST_LIBRARY_FILE): force-cargo-library-build
 # the chance of proxy bypasses originating from rust code.
 # The check only works when rust code is built with -Clto but without MOZ_LTO_RUST.
 # Sanitizers and sancov also fail because compiler-rt hooks network functions.
-ifndef MOZ_PROFILE_GENERATE
-ifeq ($(OS_ARCH), Linux)
-ifeq (,$(rustflags_sancov)$(MOZ_ASAN)$(MOZ_TSAN)$(MOZ_UBSAN))
-ifndef MOZ_LTO_RUST
-ifneq (,$(filter -Clto,$(cargo_rustc_flags)))
-	$(call py_action,check_binary,--target --networking $@)
-endif
-endif
-endif
-endif
-endif
+# ifndef MOZ_PROFILE_GENERATE
+# ifeq ($(OS_ARCH), Linux)
+# ifeq (,$(rustflags_sancov)$(MOZ_ASAN)$(MOZ_TSAN)$(MOZ_UBSAN))
+# ifndef MOZ_LTO_RUST
+# ifneq (,$(filter -Clto,$(cargo_rustc_flags)))
+# 	$(call py_action,check_binary,--target --networking $@)
+# endif
+# endif
+# endif
+# endif
+# endif
 
 force-cargo-library-check:
 	$(call CARGO_CHECK) --lib $(cargo_target_flag) $(rust_features_flag)