diff --git a/config/makefiles/rust.mk b/config/makefiles/rust.mk index 3d46004ab683..14e016007a14 100644 --- a/config/makefiles/rust.mk +++ b/config/makefiles/rust.mk @@ -244,6 +244,7 @@ $(RUST_LIBRARY_FILE): force-cargo-library-build # When we are building in --enable-release mode; we add an additional check to confirm # that we are not importing any networking-related functions in rust code. This reduces # the chance of proxy bypasses originating from rust code. +ifndef MOZ_PROFILE_GENERATE ifndef DEVELOPER_OPTIONS ifndef MOZ_DEBUG_RUST ifeq ($(OS_ARCH), Linux) @@ -251,6 +252,7 @@ ifeq ($(OS_ARCH), Linux) endif endif endif +endif force-cargo-library-check: $(call CARGO_CHECK) --lib $(cargo_target_flag) $(rust_features_flag)