Bug 948621 (part 2) - Abort DMD-enabled Windows builds unless --enable-profiling is specified. r=ehsan.

--HG--
extra : rebase_source : 7398d8d7f13792912f27948f9681ff608a0e90c6
This commit is contained in:
Nicholas Nethercote 2013-12-15 13:50:39 -08:00
parent 7424fb1500
commit 2f4ba4debf
2 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,9 @@
#include <string.h>
#ifdef XP_WIN
#if defined(MOZ_OPTIMIZE) && !defined(MOZ_PROFILING)
#error "Optimized, DMD-enabled builds on Windows must be built with --enable-profiling"
#endif
#include <windows.h>
#include <process.h>
#else

View File

@ -23,3 +23,6 @@ LIBRARY_NAME = 'dmd'
FORCE_SHARED_LIB = True
DEFINES['MOZ_NO_MOZALLOC'] = True
if CONFIG['MOZ_OPTIMIZE']:
DEFINES['MOZ_OPTIMIZE'] = True