Commit 74fe85a
Fix AVX512 cache variables not being recognized by configure
The issue was that SPC_EXTRA_PHP_VARS (containing php_cv_have_avx512=no
and php_cv_have_avx512vbmi=no) were being passed as command-line arguments
to ./configure instead of as environment variables. This caused PHP's
autoconf system to ignore the cached values and run AVX512 checks anyway.
Changes:
- LinuxBuilder.php: Parse SPC_EXTRA_PHP_VARS and add them to the
environment variable array that's passed to configure
- Extension.php: Apply the same fix for shared extension builds
The variables are now properly set in the environment before configure
runs, allowing PHP's autoconf cache system to recognize and use them.
Agent-Logs-Url: https://github.com/crazywhalecc/static-php-cli/sessions/03f84520-e96c-4748-aa05-bfd98e26fed8
Co-authored-by: crazywhalecc <20330940+crazywhalecc@users.noreply.github.com>1 parent 51d7d60 commit 74fe85a
2 files changed
Lines changed: 27 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| 437 | + | |
437 | 438 | | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
438 | 449 | | |
439 | 450 | | |
440 | 451 | | |
441 | 452 | | |
442 | 453 | | |
443 | 454 | | |
444 | 455 | | |
445 | | - | |
| 456 | + | |
446 | 457 | | |
447 | 458 | | |
448 | 459 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
104 | 117 | | |
105 | 118 | | |
106 | 119 | | |
| |||
123 | 136 | | |
124 | 137 | | |
125 | 138 | | |
126 | | - | |
127 | 139 | | |
128 | 140 | | |
129 | 141 | | |
| |||
0 commit comments