mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Test JIT on clang/asan build (#13006)
Clang enables the pointer-overflow check which is incompatble with the tracing JIT. We can still test the JIT by disabling this check.
This commit is contained in:
parent
70091492d5
commit
40908f32a0
8
.github/workflows/push.yml
vendored
8
.github/workflows/push.yml
vendored
@ -123,7 +123,7 @@ jobs:
|
||||
configurationParameters: >-
|
||||
--${{ matrix.debug && 'enable' || 'disable' }}-debug
|
||||
--${{ matrix.zts && 'enable' || 'disable' }}-zts
|
||||
${{ matrix.asan && 'CFLAGS="-fsanitize=undefined,address -DZEND_TRACK_ARENA_ALLOC" LDFLAGS="-fsanitize=undefined,address" CC=clang-16 CXX=clang++-16 --disable-opcache-jit' || '' }}
|
||||
${{ matrix.asan && 'CFLAGS="-fsanitize=undefined,address -fno-sanitize=pointer-overflow -DZEND_TRACK_ARENA_ALLOC" LDFLAGS="-fsanitize=undefined,address -fno-sanitize=pointer-overflow" CC=clang-16 CXX=clang++-16' || '' }}
|
||||
skipSlow: ${{ matrix.asan }}
|
||||
- name: make
|
||||
run: make -j$(/usr/bin/nproc) >/dev/null
|
||||
@ -137,11 +137,11 @@ jobs:
|
||||
uses: ./.github/actions/test-linux
|
||||
with:
|
||||
testArtifacts: ${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}
|
||||
- name: Test ${{ matrix.asan && 'OpCache' || 'Tracing JIT' }}
|
||||
- name: Test Tracing JIT
|
||||
uses: ./.github/actions/test-linux
|
||||
with:
|
||||
testArtifacts: ${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}${{ matrix.asan && '_ASAN' || '' }}_${{ matrix.asan && 'OpCache' || 'Tracing JIT' }}
|
||||
jitType: ${{ matrix.asan && 'disable' || 'tracing' }}
|
||||
testArtifacts: ${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}${{ matrix.asan && '_ASAN' || '' }}_Tracing JIT
|
||||
jitType: tracing
|
||||
runTestsParameters: >-
|
||||
-d zend_extension=opcache.so
|
||||
-d opcache.enable_cli=1
|
||||
|
Loading…
Reference in New Issue
Block a user