Skip to content

Commit d44061b

Browse files
nobuhsbt
authored andcommitted
Win32: Remove unreferenced COMDAT from object files
Windows 11 SDK Version 10.0.26100.0 introduced a new internal inline function in ucrt/corecrt_math.h. Even it appears in object files and will be included in the DEF file, it will be removed from the DLL and result in a linker error.
1 parent 5232e3c commit d44061b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

win32/Makefile.sub

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ OPTFLAGS = -O2b2xg-
158158
OPTFLAGS = -O2sy-
159159
!endif
160160
!endif
161+
!if $(MSC_VER) >= 1900
162+
OPTFLAGS = $(OPTFLAGS) -Zc:inline
163+
!endif
161164
!if !defined(incflags)
162165
incflags =
163166
!endif

0 commit comments

Comments
 (0)