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
This commit is contained in:
parent
2263bd1e29
commit
e33cc2e2db
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user