Bug 851975 - Don't use conditionals in backend.mk; r=ted

This commit is contained in:
Gregory Szorc 2013-03-17 16:57:44 -07:00
parent a41722b114
commit 0d04d82387

View File

@ -244,10 +244,10 @@ class RecursiveMakeBackend(BuildBackend):
if obj.test_dirs:
fh.write('TEST_DIRS := %s\n' % ' '.join(obj.test_dirs))
if obj.test_tool_dirs:
fh.write('ifdef ENABLE_TESTS\n')
if obj.test_tool_dirs and \
self.environment.substs.get('ENABLE_TESTS', False):
fh.write('TOOL_DIRS += %s\n' % ' '.join(obj.test_tool_dirs))
fh.write('endif\n')
if len(obj.external_make_dirs):
fh.write('DIRS += %s\n' % ' '.join(obj.external_make_dirs))