Repository navigation
Feat/pgo v3 - #1138
Feat/pgo v3#1138henderkes wants to merge 119 commits into
Conversation
|
StaticPHP Test Bot Detected: Extensions: |
|
(I tested with static-php/packages v3 branch, php 8.5 zig on rpm. Tests with Alpine and gcc are still to finish in a few hours when ci runs.) |
|
Wair, why is curl a target like php and not a package/library? We don't compile the exe right? |
We could compile curl.exe, which shows that StaticPHP is not only suitable for building static PHP, but also for other projects. Just like we already support building pkg-config and re2c. Making them targets simply makes reasonable.
|
…ith different pkg_root_path set
…fined behaviour sanitizer)
Okay, added curl.exe on Windows too. Also figured out the root cause of the BUILD_CC patch minilua crash (zigs undefined behaviour sanitizer tripping up, if you run |
|
Oh, there's even an issue running the binaries despite no undefined sanitizer that I can't reproduce locally or in docker. Very weird. |
| # Do not abort when a shared extension fails to build or to load: skip it, drop its .so, and | ||
| # record it in buildroot/skipped-shared-extensions.json (default: false) | ||
| allow-shared-ext-failure: false |
There was a problem hiding this comment.
Do we still need this feature?
There was a problem hiding this comment.
No, only for me for 8.6.
The buildroot include rewrite compared a realpath'd -isystem argument against BUILD_ROOT_PATH, i.e. the buildroot root instead of its include/ directory, so it never matched and every -isystem was passed through unchanged. Compare against BUILD_INCLUDE_PATH instead, map -mtune=generic to zig's "baseline" spelling, and drop GCC-only warning flags (-Wlogical-op, -Wduplicated-cond, -Warray-bounds=*, ...) that clang/zig does not know, so they no longer produce -Wunknown-warning-option noise. Port of crazywhalecc#1138 (4f76942, 8f557aa).
The only guard was --max-time 3600, so an unreachable host or a mirror that stops sending data blocks the build for up to an hour. Abort when no connection is established within 15s, and when throughput stays below 1 byte/s for 30s. Applies to both executeCurl() and executeCurlDownload(). Port of crazywhalecc#1138 (7d3e1f8).
cgo caches the evaluated include list across builds (FRANKENPHP_VERSION and friends are resolved from generated headers), so a rebuild could keep reporting and compiling against the values from the previous build even after the headers were regenerated. Clear the go build cache before xcaddy runs. Port of crazywhalecc#1138 (a88e426).
Expose --with-sysconfdir and forward it to PHP's configure as --sysconfdir=..., so packagers can point PHP at a location such as /etc/php-zts. The option is wired into the Unix configure path only; Windows ignores it. Document the option in the bilingual CLI reference and in the craft.yml build-options example. Port of crazywhalecc#1138 (8f557aa).
What does this PR do?
Checklist before merging
*.phpor*.json, run them locally to ensure your changes are valid:composer cs-fixcomposer analysecomposer testbin/spc dev:sort-configsrc/globals/test-extensions.php.extension testortest extensionsto trigger full test suite.