Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 0d04d82

Browse files
committed
Bug 851975 - Don't use conditionals in backend.mk; r=ted
1 parent a41722b commit 0d04d82

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

python/mozbuild/mozbuild/backend/recursivemake.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,10 @@ def _process_directory_traversal(self, obj, backend_file):
244244
if obj.test_dirs:
245245
fh.write('TEST_DIRS := %s\n' % ' '.join(obj.test_dirs))
246246

247-
if obj.test_tool_dirs:
248-
fh.write('ifdef ENABLE_TESTS\n')
247+
if obj.test_tool_dirs and \
248+
self.environment.substs.get('ENABLE_TESTS', False):
249+
249250
fh.write('TOOL_DIRS += %s\n' % ' '.join(obj.test_tool_dirs))
250-
fh.write('endif\n')
251251

252252
if len(obj.external_make_dirs):
253253
fh.write('DIRS += %s\n' % ' '.join(obj.external_make_dirs))

0 commit comments

Comments
 (0)