]> granicus.if.org Git - php/commitdiff
Drop deprecated /Gm compile option
authorChristoph M. Becker <cmbecker69@gmx.de>
Fri, 28 Dec 2018 17:12:50 +0000 (18:12 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sun, 30 Dec 2018 13:36:05 +0000 (14:36 +0100)
The `/Gm` option of `cl` is deprecated[1], and `cl` claims that it will
be removed in the future, so we're dropping it right away.

[1] <https://docs.microsoft.com/en-us/cpp/build/reference/gm-enable-minimal-rebuild?view=vs-2017>

win32/build/confutils.js

index 371d586ef8ae4d3352c8dfc23cc63b60501b2408..a74812e7f4b1cdd80b54a81874708e3719b96641 100644 (file)
@@ -3194,7 +3194,7 @@ function toolset_setup_common_libs()
 function toolset_setup_build_mode()
 {
        if (PHP_DEBUG == "yes") {
-               ADD_FLAG("CFLAGS", "/LDd /MDd /W3 /Gm /Od /D _DEBUG /D ZEND_DEBUG=1 " +
+               ADD_FLAG("CFLAGS", "/LDd /MDd /W3 /Od /D _DEBUG /D ZEND_DEBUG=1 " +
                        (X64?"/Zi":"/ZI"));
                ADD_FLAG("LDFLAGS", "/debug");
                // Avoid problems when linking to release libraries that use the release