pmmp / PHP-Binaries

Compile scripts used to build PHP for PocketMine-MP on multiple platforms
117 stars 169 forks source link

compile.sh library cache: autoconf, cmake etc need to be run again if install prefix changed #157

Open dktapps opened 1 year ago

dktapps commented 1 year ago

One use case for caching is to reuse compiled dependencies for binaries installed in different locations.

Currently, the library caching only works if the prefix did not change.

dktapps commented 1 year ago

It turns out that changing prefix path causes most libraries to do a full recompile, rendering the cache mostly useless. We can track the target install path and avoid reconfiguring if it's unchanged, but it's less than ideal.