We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b21e4e commit 7d7fe25Copy full SHA for 7d7fe25
win32/build/confutils.js
@@ -3404,6 +3404,12 @@ function toolset_setup_common_ldlags()
3404
ADD_FLAG('LDFLAGS', "/GUARD:CF");
3405
}
3406
3407
+ if (PHP_VS_LINK_COMPAT != "no") {
3408
+ // Allow compatible IL versions, do not require an exact match.
3409
+ // Prevents build failures where different libs were built with different (but compatible) IL versions.
3410
+ // See fatal error C1047.
3411
+ ADD_FLAG("LDFLAGS", "/d2:-AllowCompatibleILVersions ");
3412
+ }
3413
3414
3415
@@ -3753,3 +3759,9 @@ function setup_verbosity()
3753
3759
CMD_MOD2 = "@";
3754
3760
3755
3761
3762
+
3763
+try {
3764
+ ARG_ENABLE('vs-link-compat', 'Allow linking of libraries built with compatible versions of VS toolset', 'yes');
3765
+} catch (e) {
3766
+ STDOUT.WriteLine("problem: " + e);
3767
+}
0 commit comments