Skip to content

Commit 68d7e25

Browse files
committed
ci: enable _GLIBCXX_ASSERTIONS c++ flags on debug builds.
Enable additional C++ runtime checks for the intl extensions. Basically, out-of-bounds accesses on vector or strings, undefined behavior on iterators.
1 parent e5f81bd commit 68d7e25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/push.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ jobs:
113113
configurationParameters: >-
114114
--${{ matrix.debug && 'enable' || 'disable' }}-debug
115115
--${{ matrix.zts && 'enable' || 'disable' }}-zts
116-
${{ matrix.asan && 'CFLAGS="-fsanitize=undefined,address -fno-sanitize=function -DZEND_TRACK_ARENA_ALLOC" LDFLAGS="-fsanitize=undefined,address -fno-sanitize=function" CC=clang CXX=clang++' || '' }}
116+
${{ matrix.asan && 'CFLAGS="-fsanitize=undefined,address -fno-sanitize=function -DZEND_TRACK_ARENA_ALLOC" LDFLAGS="-fsanitize=undefined,address -fno-sanitize=function" CC=clang CXX=clang++ --disable-opcache-jit' || '' }}
117+
${{ matrix.debug && 'enable' && 'CXXFLAGS="-D_GLIBCXX_ASSERTIONS"' }}
117118
skipSlow: ${{ matrix.asan }}
118119
- name: make
119120
run: make -j$(/usr/bin/nproc) >/dev/null

0 commit comments

Comments
 (0)