diff options
Diffstat (limited to 'solenv/gbuild')
-rw-r--r-- | solenv/gbuild/platform/com_MSC_class.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/solenv/gbuild/platform/com_MSC_class.mk b/solenv/gbuild/platform/com_MSC_class.mk index 5df38636a706..77fd83a733a6 100644 --- a/solenv/gbuild/platform/com_MSC_class.mk +++ b/solenv/gbuild/platform/com_MSC_class.mk @@ -256,10 +256,12 @@ $(if $(call gb_LinkTarget__is_merged,$(1)),\ $(call gb_LinkTarget_add_libs,$(call gb_Library_get_linktarget,merged),$(foreach lib,$(2),$(call gb_MSVCRT_subst,$(lib)).lib))) endef -# Flags common for PE executables (EXEs and DLLs) +# Flags common for PE executables (EXEs and DLLs). +# Enable incremental only when debugging to speed up relinking. gb_Windows_PE_TARGETTYPEFLAGS := \ -release \ -opt:noref \ + $(if $(filter 0,$(gb_DEBUGLEVEL)), -incremental:no) \ $(if $(filter NO,$(LIBRARY_X64)), -safeseh) \ -nxcompat \ -dynamicbase \ |