diff --git a/config/rules.mk b/config/rules.mk index 7c5bbb4d4bc9..cec5deec5eeb 100644 --- a/config/rules.mk +++ b/config/rules.mk @@ -1132,7 +1132,9 @@ endif ifneq ($(PREF_JS_EXPORTS),) ifndef NO_DIST_INSTALL PREF_JS_EXPORTS_PATH := $(FINAL_TARGET)/$(PREF_DIR) -PREF_JS_EXPORTS_FLAGS := $(PREF_PPFLAGS) +# We preprocess these, but they don't necessarily have preprocessor directives, +# so tell them preprocessor to not complain about that. +PREF_JS_EXPORTS_FLAGS := $(PREF_PPFLAGS) --silence-missing-directive-warnings PP_TARGETS += PREF_JS_EXPORTS endif endif @@ -1275,7 +1277,9 @@ endif ifneq ($(DIST_FILES),) DIST_FILES_PATH := $(FINAL_TARGET) -DIST_FILES_FLAGS := $(XULAPP_DEFINES) +# We preprocess these, but they don't necessarily have preprocessor directives, +# so tell them preprocessor to not complain about that. +DIST_FILES_FLAGS := $(XULAPP_DEFINES) --silence-missing-directive-warnings PP_TARGETS += DIST_FILES endif