From: RossettoeCioccolato on
Is it possible within the WDK build environment to turn off all debug
information so that no PDB file is produced and the executable does not
contain a debug section? The build environment appears to be forcing the
/debug linker option. I am using OSR's DDKBuild script.

Regards,

Rossetoecioccolato.


From: David Craig on
Why didn't you ask in the OSR newsgroup? The maintainers of that script
will be most likely to see the question there. Can you do it from a build
environment? If not, why would a wrapper batch file be more successful.

"RossettoeCioccolato" <rossetoecioccolato(a)newsgroup.nospam> wrote in message
news:uNLQYhvPKHA.3540(a)TK2MSFTNGP04.phx.gbl...
> Is it possible within the WDK build environment to turn off all debug
> information so that no PDB file is produced and the executable does not
> contain a debug section? The build environment appears to be forcing the
> /debug linker option. I am using OSR's DDKBuild script.
>
> Regards,
>
> Rossetoecioccolato.
>


From: Ivan Brugiolo [MSFT] on
Do you have LINKER_FORCE_NO_DBG_SECTION in makefile.def ?
If yes, then adding LINKER_FORCE_NO_DBG_SECTION=1
to your sources file should do the trick

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"RossettoeCioccolato" <rossetoecioccolato(a)newsgroup.nospam> wrote in message
news:uNLQYhvPKHA.3540(a)TK2MSFTNGP04.phx.gbl...
> Is it possible within the WDK build environment to turn off all debug
> information so that no PDB file is produced and the executable does not
> contain a debug section? The build environment appears to be forcing the
> /debug linker option. I am using OSR's DDKBuild script.
>
> Regards,
>
> Rossetoecioccolato.
>

From: RossettoeCioccolato on
Thanks Ivan, that is what I was looking for.

Regards,

Rossetoecioccolato.


From: RossettoeCioccolato on
Ivan,

How do I enable that conditionally only for free builds?

! if $(FREEBUILD)
LINKER_FORCE_NO_DBG_SECTION=1
! endif

Thanks,

Rossetoecioccolato.