]> granicus.if.org Git - php/commitdiff
Disable PGO for phpdbg
authorAnatol Belski <ab@php.net>
Thu, 8 Mar 2018 10:38:02 +0000 (11:38 +0100)
committerAnatol Belski <ab@php.net>
Thu, 8 Mar 2018 10:48:37 +0000 (11:48 +0100)
For executable files, the linker seems to have issues dealing with the
empty profiling database. As PGO is unlikely to bring any benefit in
this case, the easiest is to disable it.

sapi/phpdbg/config.w32

index 2d907ee697dfffdffd62586ab4580ce43c0a3bf5..e69ca455f79f9ccd9ca0251026afcfc72813a6fe 100644 (file)
@@ -11,6 +11,10 @@ PHPDBG_DLL='php' + PHP_VERSION + 'phpdbg.dll';
 PHPDBG_EXE='phpdbg.exe';
 PHPDBG_CFLAGS='/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1';
 
+var PHP_PHPDBG_PGO = false;
+var PHP_PHPDBG_WEBHELPER_PGO = false;
+var PHP_PHPDBGS_PGO = false;
+
 if (PHP_PHPDBG == "yes") {
        SAPI('phpdbg', PHPDBG_SOURCES, PHPDBG_EXE, PHPDBG_CFLAGS);
        ADD_FLAG("LIBS_PHPDBG", "ws2_32.lib user32.lib");