mirror of
git://slackware.nl/current.git
synced 2025-01-25 07:58:40 +01:00
28 lines
973 B
Diff
28 lines
973 B
Diff
|
--- ./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 @@
|
||
|
# the chance of proxy bypasses originating from rust code.
|
||
|
# 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
|
||
|
-ifeq ($(OS_ARCH), Linux)
|
||
|
-ifeq (,$(rustflags_sancov)$(MOZ_ASAN)$(MOZ_TSAN)$(MOZ_UBSAN))
|
||
|
-ifneq (,$(filter -Clto,$(cargo_rustc_flags)))
|
||
|
- $(call py_action,check_binary,--target --networking $@)
|
||
|
-endif
|
||
|
-endif
|
||
|
-endif
|
||
|
-endif
|
||
|
+#ifndef MOZ_PROFILE_GENERATE
|
||
|
+#ifeq ($(OS_ARCH), Linux)
|
||
|
+#ifeq (,$(rustflags_sancov)$(MOZ_ASAN)$(MOZ_TSAN)$(MOZ_UBSAN))
|
||
|
+#ifneq (,$(filter -Clto,$(cargo_rustc_flags)))
|
||
|
+# $(call py_action,check_binary,--target --networking $@)
|
||
|
+#endif
|
||
|
+#endif
|
||
|
+#endif
|
||
|
+#endif
|
||
|
|
||
|
force-cargo-library-check:
|
||
|
$(call CARGO_CHECK) --lib $(cargo_target_flag) $(rust_features_flag)
|