diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-11-17 19:29:16 +0900 |
|---|---|---|
| committer | nagachika <nagachika@ruby-lang.org> | 2024-11-19 19:31:46 +0900 |
| commit | 0c8a3181c0ad21051a291d82cb24979bfa3bf2c4 (patch) | |
| tree | eb79b972c89d6444dfe64a47b3139d5164db7b4b | |
| parent | 3d6fe67f4237b244361a01e35b7b294297839f7d (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.sub | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 8cf0b03a7f..f5b76bbe02 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 |
