microsoft / php-sdk-binary-tools

Tool kit for building PHP under Windows
BSD 2-Clause "Simplified" License
271 stars 78 forks source link

Link-time Code Generation with MSVC 15.7 issue #36

Closed nono303 closed 6 years ago

nono303 commented 6 years ago

Hi, Since MSVC 15.7 update, I can't anymore build with Link-time Code Generation Ex.

For details about MSVC version, here are

Do you think it would be possible to update libiconv and freetype dependencies build either with:

Don't hesitate to come back to me if needed.

nono303 commented 6 years ago

I've overridden problematic dependencies with MSVC 15.7 and without /GL & /LTCG ones: and it's works ;)

the 4 deps are available @ https://github.com/nono303/phpwin-perfbuild/tree/php-7.2.6/vc15/x64/deps & https://github.com/nono303/phpwin-perfbuild/tree/php-7.2.6/vc15/x86/deps

fyi, php 7.2.6 bench results with Zend/micro_bench.php give an average of 4.595 for unoptimized build and 4.169 for /GL & /LTCG one

weltling commented 6 years ago

Thanks for the report. We didn't switch to 15.7 for the official builds yet because of some other compatibility issues. It's going to be upgraded after the test phase. Of course any dep issues are going to be fixed, too.

Regarding performance - do you have benchmarks with some real apps? For the builds from windows.php.net /LTCG is used for the PGO builds, too. Did you use PGO as well? It would probably make sense to describe in some more detail the methodology of your test. Synthetic benchmarks are often not representative, what matters are the real apps where one wants to see the effect.

Thanks.

nono303 commented 6 years ago

@weltling

In truth, i play with php compilation for fun & knowledge ^^

weltling commented 6 years ago

Upgraded dependencies have been put into staging, so the issue is fixed now.

Thanks.

nono303 commented 6 years ago

@weltling Thanks! All sounds good with php-sdk-2.1.7 and php-7.2.8 ;) fyi, find attached my phpsdk-local.bat & output.log phpsdk-local.bat.txt x64_TS-0_LTCG-1_20180724-111549.log

nono303 commented 6 years ago

Hi, @weltling fyi, same problem with MSVC 15.8 update. I've uploaded x86 & x64 15.8 build deps on https://github.com/nono303/phpwin-perfbuild/tree/php-7.2.9