diff --git a/toolkit/toolkit.mozbuild b/toolkit/toolkit.mozbuild index d9ea1f06e558..8c2b2bf996bd 100644 --- a/toolkit/toolkit.mozbuild +++ b/toolkit/toolkit.mozbuild @@ -27,12 +27,11 @@ if CONFIG["COMPILE_ENVIRONMENT"]: "/security", ] -if CONFIG["ENABLE_TESTS"]: - DIRS += [ - "/toolkit/library/gtest/rust", - ] - if not CONFIG["MOZ_OVERRIDE_GKRUST"]: + if CONFIG["ENABLE_TESTS"]: + DIRS += [ + "/toolkit/library/gtest/rust", + ] DIRS += [ "/toolkit/library/rust", ]