From ff355fe9ac5327a62cdbd05f99dff9febe5de5df Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Wed, 4 Nov 2020 14:38:12 -0500 Subject: Issue #1676 - Part 17: Put remaining source files which have debug code ifdef'd behind MOZ_DEBUG --- js/src/gc/moz.build | 4 +++- js/src/jit/moz.build | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/js/src/gc/moz.build b/js/src/gc/moz.build index 8f3188cf1f..d33dfb0079 100644 --- a/js/src/gc/moz.build +++ b/js/src/gc/moz.build @@ -24,6 +24,8 @@ SOURCES += [ 'Statistics.cpp', 'StoreBuffer.cpp', 'Tracer.cpp', - 'Verifier.cpp', 'Zone.cpp', ] + +if CONFIG['MOZ_DEBUG']: + SOURCES += ['Verifier.cpp'] diff --git a/js/src/jit/moz.build b/js/src/jit/moz.build index bcd9b7dbf5..0c6c4f3b8c 100644 --- a/js/src/jit/moz.build +++ b/js/src/jit/moz.build @@ -32,7 +32,6 @@ SOURCES += [ 'CacheIR.cpp', 'CodeGenerator.cpp', 'CompileWrappers.cpp', - 'Disassembler.cpp', 'EagerSimdUnbox.cpp', 'EdgeCaseAnalysis.cpp', 'EffectiveAddressAnalysis.cpp', @@ -83,6 +82,9 @@ SOURCES += [ 'WasmBCE.cpp', ] +if CONFIG['MOZ_DEBUG']: + SOURCES += ['Disassembler.cpp'] + if not CONFIG['ENABLE_ION']: SOURCES += [ 'none/Trampoline-none.cpp' -- cgit v1.2.3