Skip to content

Commit c0aa007

Browse files
committed
fix bug with tailcall on aarch64
1 parent 9d5a783 commit c0aa007

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/templates/craft.yml.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{%- if arch == 'x86_64' and os == '10' %} {% set arch_flags = arch_flags ~ ' -march=x86-64-v3' -%} {%- endif -%}
44
{%- if arch == 'x86_64' and os == '9' %} {% set arch_flags = arch_flags ~ ' -march=x86-64-v2' -%} {%- endif -%}
55
{%- if arch == 'x86_64' and os != '10' and os != '9' -%} {%- set arch_flags = arch_flags ~ ' ' -%} {%- endif -%}
6-
{%- set using_gcc = not target and (php_version < '8.5' or arch == 'aarch64' ) -%}{# bug with tailcall vm on aarch64 atm, see https://github.com/php/php-src/issues/21029 #}
6+
{%- set using_gcc = not target and (php_version < '8.5' or (arch == 'aarch64' and type != 'apk')) -%}{# bug with tailcall vm on aarch64 atm, see https://github.com/php/php-src/issues/21029 #}
77
{%- if not using_gcc and not target and os == 8 %}{% set target = 'native-native-gnu.2.28' -%}{%- endif -%}
88
{%- if not using_gcc and not target and os == 9 %}{% set target = 'native-native-gnu.2.34' -%}{%- endif -%}
99
{%- if not using_gcc and not target %}{% set target = 'native-native-gnu' -%}{% endif -%}

0 commit comments

Comments
 (0)