summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-03-28 14:44:34 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-03-28 14:44:34 +0100
commite51d9fbc10d626a57720b6065149da3f4e535c37 (patch)
treea256fb92f048884a983053d19646e17a37cf9d74
parent2dfd75f7f8addc0fa2e892824d31d0f6c00cbf25 (diff)
downloadUXP-e51d9fbc10d626a57720b6065149da3f4e535c37.tar
UXP-e51d9fbc10d626a57720b6065149da3f4e535c37.tar.gz
UXP-e51d9fbc10d626a57720b6065149da3f4e535c37.tar.lz
UXP-e51d9fbc10d626a57720b6065149da3f4e535c37.tar.xz
UXP-e51d9fbc10d626a57720b6065149da3f4e535c37.zip
Issue #1497 Revert "Check if there are any unpreprocessed files"
This reverts PR #429
-rw-r--r--python/mozbuild/mozbuild/mach_commands.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/python/mozbuild/mozbuild/mach_commands.py b/python/mozbuild/mozbuild/mach_commands.py
index 43c189dd9..6e57ab5ae 100644
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -541,16 +541,6 @@ class Build(MachCommandBase):
# as when doing OSX Universal builds)
pass
- # Check if there are any unpreprocessed files in '@MOZ_OBJDIR@/dist/bin'
- # See python/mozbuild/mozbuild/preprocessor.py#L293-L309 for the list of directives
- # We skip if, ifdef, ifndef, else, elif, elifdef and elifndef, because they are never used alone
- grepcmd = 'grep -E -r "^(#|%)(define|endif|error|expand|filter|include|literal|undef|unfilter)" '\
- + '--include=\*.{css,dtd,html,js,jsm,xhtml,xml,xul,manifest,properties,rdf} '\
- + self.topobjdir + '/dist/bin | awk "/\.css:%/ || (!/\.css/ && /:#/)"'
- grepresult = subprocess.Popen(grepcmd, stdout=subprocess.PIPE, shell=True).communicate()[0]
- if grepresult:
- print('\nERROR: preprocessor was not applied to the following files:\n\n' + grepresult)
-
return status
@Command('configure', category='build',