From e33cc2e2db8f1da963752c035ae504a8d2646638 Mon Sep 17 00:00:00 2001 From: "cyeh%netscape.com" Date: Fri, 22 Jan 1999 01:45:38 +0000 Subject: [PATCH] added new hacky build configuration. if MOZ_DEBUG is not set, you can set MOZ_DEBUGOPT. MOZ_DEBUGOPT will generate optimized bits, but also generate debugging information linked into the libraries and executables. this can be insanely useful when you are trying to track down compiler optimization bugs. to use, set MOZ_DEBUG=, set MOZ_DEBUGOPT=1 git-svn-id: svn://10.0.0.236/trunk@18245 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/config/WIN32 | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/mozilla/config/WIN32 b/mozilla/config/WIN32 index b520a8450c2..d1dc89c022e 100644 --- a/mozilla/config/WIN32 +++ b/mozilla/config/WIN32 @@ -72,11 +72,22 @@ OS_LFLAGS=/DEBUG /DEBUGTYPE:CV /PDB:NONE !endif !else -# -# optimize it + + +# if MOZ_DEBUG is not set and MOZ_DEBUGOPT is set, then we generate +# an optimized build with debugging symbols. useful for debugging +# compiler optimization bugs + +!ifdef MOZ_DEBUGOPT +OS_LFLAGS=/DEBUG /DEBUGTYPE:CV /PDB:NONE /opt:ref +OPTIMIZER=/Zi -O1 -UDEBUG -DNDEBUG +!else +# MOZ_DEBUG not set. +# optimize it, no symbols # OPTIMIZER=-O1 -UDEBUG -DNDEBUG OS_LFLAGS= +!endif !endif !endif