Skip to content

Commit ca9747a

Browse files
committed
Add IL compat flag to Windows builds, see microsoft/php-sdk-binary-tools#72
1 parent 042e0d8 commit ca9747a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

win32/build/config.w32

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ ADD_FLAG("ARFLAGS", '/nologo /libpath:"' + php_usual_lib_suspects + '" ');
130130
probe_basic_headers();
131131
add_extra_dirs();
132132

133+
// Allow compatible IL versions, do not require an exact match.
134+
// Prevents build failures where different libs were built with different (but compatible) IL versions.
135+
// See fatal error C1047.
136+
ADD_FLAG("LDFLAGS", "/d2:-AllowCompatibleILVersions ");
137+
133138
//DEFINE("PHP_BUILD", PHP_PHP_BUILD);
134139

135140
ARG_WITH("analyzer", "Enable static analyzer. Pass vs for Visual Studio, clang for clang, cppcheck for Cppcheck, pvs for PVS-Studio", "no");

0 commit comments

Comments
 (0)