summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-11-17 19:29:16 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-11-20 10:18:27 +0900
commitd44061b91986a225dd4a9d0337853a45de9eef48 (patch)
tree6eb757c3f1bb59de9065a01829eb3999df299fbb
parent5232e3ce3cdd69f9afaf5d34370f6ef3c84e4930 (diff)
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.
-rw-r--r--win32/Makefile.sub3
1 files changed, 3 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 93bc1e6458..21dbd05812 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -158,6 +158,9 @@ OPTFLAGS = -O2b2xg-
OPTFLAGS = -O2sy-
!endif
!endif
+!if $(MSC_VER) >= 1900
+OPTFLAGS = $(OPTFLAGS) -Zc:inline
+!endif
!if !defined(incflags)
incflags =
!endif