File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ permissions:
21
21
contents : read # to fetch code (actions/checkout)
22
22
23
23
jobs :
24
- gcc_sanitizers :
24
+ clang_sanitizers :
25
25
# To enable this workflow on a fork, comment out:
26
26
if : github.repository == 'numpy/numpy'
27
27
runs-on : ubuntu-latest
35
35
python-version : ${{ env.PYTHON_VERSION }}
36
36
- name : Install dependencies
37
37
run : |
38
+ sudo apt update
39
+ sudo apt install -y llvm libstdc++-12-dev
38
40
pip install -r requirements/build_requirements.txt
39
41
pip install -r requirements/ci_requirements.txt
40
42
- name : Build
43
45
TERM : xterm-256color
44
46
PKG_CONFIG_PATH : ${{ github.workspace }}/.openblas
45
47
run :
46
- spin build --with-scipy-openblas=32 -- --werror -Db_sanitize=address,undefined
48
+ CC=clang CXX=clang++ spin build --with-scipy-openblas=32 -- -Db_sanitize=address,undefined
47
49
- name : Test
48
50
shell : ' script -q -e -c "bash --noprofile --norc -eo pipefail {0}"'
49
51
env :
52
54
pip install pytest pytest-xdist hypothesis typing_extensions
53
55
ASAN_OPTIONS=detect_leaks=0:symbolize=1:strict_init_order=true:allocator_may_return_null=1:halt_on_error=1 \
54
56
UBSAN_OPTIONS=halt_on_error=0 \
55
- LD_PRELOAD=$(gcc --print-file-name=libasan .so) \
57
+ LD_PRELOAD=$(clang --print-file-name=libclang_rt.asan-x86_64 .so) \
56
58
python -m spin test -- -v -s
You can’t perform that action at this time.
0 commit comments