2020-09-24 21:39:47 +02:00
|
|
|
--- ./config/makefiles/rust.mk.orig 2020-08-04 21:42:49.000000000 -0500
|
|
|
|
+++ ./config/makefiles/rust.mk 2020-08-24 21:44:11.930497037 -0500
|
|
|
|
@@ -303,15 +303,15 @@
|
2019-08-30 00:21:17 +02:00
|
|
|
# the chance of proxy bypasses originating from rust code.
|
2020-09-24 21:39:47 +02:00
|
|
|
# The check only works when rust code is built with -Clto.
|
|
|
|
# Sanitizers and sancov also fail because compiler-rt hooks network functions.
|
|
|
|
-ifndef MOZ_PROFILE_GENERATE
|
2019-08-30 00:21:17 +02:00
|
|
|
-ifeq ($(OS_ARCH), Linux)
|
2020-09-24 21:39:47 +02:00
|
|
|
-ifeq (,$(rustflags_sancov)$(MOZ_ASAN)$(MOZ_TSAN)$(MOZ_UBSAN))
|
|
|
|
-ifneq (,$(filter -Clto,$(cargo_rustc_flags)))
|
2019-08-30 00:21:17 +02:00
|
|
|
- $(call py_action,check_binary,--target --networking $@)
|
|
|
|
-endif
|
|
|
|
-endif
|
|
|
|
-endif
|
2020-09-24 21:39:47 +02:00
|
|
|
-endif
|
|
|
|
+#ifndef MOZ_PROFILE_GENERATE
|
2019-08-30 00:21:17 +02:00
|
|
|
+#ifeq ($(OS_ARCH), Linux)
|
2020-09-24 21:39:47 +02:00
|
|
|
+#ifeq (,$(rustflags_sancov)$(MOZ_ASAN)$(MOZ_TSAN)$(MOZ_UBSAN))
|
|
|
|
+#ifneq (,$(filter -Clto,$(cargo_rustc_flags)))
|
2019-08-30 00:21:17 +02:00
|
|
|
+# $(call py_action,check_binary,--target --networking $@)
|
|
|
|
+#endif
|
|
|
|
+#endif
|
2020-09-24 21:39:47 +02:00
|
|
|
+#endif
|
2019-08-30 00:21:17 +02:00
|
|
|
+#endif
|
|
|
|
|
|
|
|
force-cargo-library-check:
|
|
|
|
$(call CARGO_CHECK) --lib $(cargo_target_flag) $(rust_features_flag)
|