diff --git a/rust/gkrust/moz.build b/rust/gkrust/moz.build index c6bcd69b6b..c3db6637e0 100644 --- a/rust/gkrust/moz.build +++ b/rust/gkrust/moz.build @@ -6,7 +6,8 @@ include("/toolkit/library/rust/moz.build") -RUST_TEST_FEATURES.remove("gkrust-shared/crashreporter") +if CONFIG["MOZ_CRASHREPORTER"]: + RUST_TEST_FEATURES.remove("gkrust-shared/crashreporter") RUST_TEST_FEATURES.remove("crashreporter/mock") # Defined in /toolkit/library/rust/moz.build