mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
ci: enable _GLIBCXX_ASSERTIONS c++ flags on debug builds. (#19497)
Enable additional C++ runtime checks for the intl extensions. Basically, out-of-bounds accesses on vector or strings, undefined behavior on iterators.
This commit is contained in:
1
.github/workflows/push.yml
vendored
1
.github/workflows/push.yml
vendored
@@ -112,6 +112,7 @@ jobs:
|
||||
with:
|
||||
configurationParameters: >-
|
||||
--${{ matrix.debug && 'enable' || 'disable' }}-debug
|
||||
${{ matrix.debug && 'CXXFLAGS="-D_GLIBCXX_ASSERTIONS"' || '' }}
|
||||
--${{ matrix.zts && 'enable' || 'disable' }}-zts
|
||||
${{ matrix.asan && 'CFLAGS="-fsanitize=undefined,address -fno-sanitize=function -DZEND_TRACK_ARENA_ALLOC" LDFLAGS="-fsanitize=undefined,address -fno-sanitize=function" CC=clang CXX=clang++' || '' }}
|
||||
skipSlow: ${{ matrix.asan }}
|
||||
|
||||
Reference in New Issue
Block a user