Skip to content

Commit 900f818

Browse files
committed
Disable zig cc Debug UB traps so minilua host tool builds for PHP 8.5 JIT
1 parent 11ba158 commit 900f818

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

config/templates/craft.yml.twig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ extra-env:
9898
{% else -%}
9999
SPC_TARGET: '{{ target }}'
100100
SPC_EXTRA_PHP_VARS: 'php_cv_preserve_none=yes'
101+
# zig cc without -O keeps Debug UB traps; bare-built minilua aborts on Lua's 2^32 double->int cast
102+
SPC_COMPILER_EXTRA: '-fno-sanitize=undefined'
101103
{% endif -%}
102104
EXTENSION_DIR: "{{ moduledir }}"
103105
SPC_CMD_VAR_PHP_EMBED_TYPE: 'shared'

0 commit comments

Comments
 (0)