mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 13:02:11 +00:00
Enable linker optimization in release builds when generating debug symbols.
[SVN r16525]
This commit is contained in:
@@ -65,6 +65,9 @@ flags msvc CFLAGS <debug-symbols>on/<debug-store>object : /Z7 ;
|
||||
flags msvc CFLAGS <debug-symbols>on/<debug-store>database : /Zi ;
|
||||
flags msvc PDB_CFLAG <debug-symbols>on/<debug-store>database : /Fd ;
|
||||
flags msvc LINKFLAGS <debug-symbols>on : /DEBUG ;
|
||||
# The linker disables the default optimizations when using /DEBUG. Whe have
|
||||
# to enable them manually for release builds with debug symbols.
|
||||
flags msvc LINKFLAGS <debug-symbols>on/<runtime-build>release : /OPT:REF,ICF ;
|
||||
|
||||
flags msvc CFLAGS <optimization>off : /Od ;
|
||||
flags msvc CFLAGS <optimization>speed : /O2 ;
|
||||
|
||||
@@ -65,6 +65,9 @@ flags msvc CFLAGS <debug-symbols>on/<debug-store>object : /Z7 ;
|
||||
flags msvc CFLAGS <debug-symbols>on/<debug-store>database : /Zi ;
|
||||
flags msvc PDB_CFLAG <debug-symbols>on/<debug-store>database : /Fd ;
|
||||
flags msvc LINKFLAGS <debug-symbols>on : /DEBUG ;
|
||||
# The linker disables the default optimizations when using /DEBUG. Whe have
|
||||
# to enable them manually for release builds with debug symbols.
|
||||
flags msvc LINKFLAGS <debug-symbols>on/<runtime-build>release : /OPT:REF,ICF ;
|
||||
|
||||
flags msvc CFLAGS <optimization>off : /Od ;
|
||||
flags msvc CFLAGS <optimization>speed : /O2 ;
|
||||
|
||||
Reference in New Issue
Block a user