Skip to content

Commit

Permalink
Add Opaque pointers to CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarkall committed Aug 7, 2024
1 parent d704942 commit a9ae1f2
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ jobs:
CONDA_ENV: cienv
LLVM: '16'

opaque_pointers:
PYTHON: '3.12'
CONDA_ENV: cienv
OPAQUE_POINTERS: yes

- template: buildscripts/azure/azure-linux-macos.yml
parameters:
name: Linux
Expand Down Expand Up @@ -72,6 +77,11 @@ jobs:
CONDA_ENV: cienv
LLVM: '16'

opaque_pointers:
PYTHON: '3.12'
CONDA_ENV: cienv
OPAQUE_POINTERS: yes

- template: buildscripts/azure/azure-windows.yml
parameters:
name: Windows
Expand Down
5 changes: 5 additions & 0 deletions buildscripts/azure/azure-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ jobs:
CONDA_ENV: cienv
LLVM: '16'

opaque_pointers:
PYTHON: '3.12'
CONDA_ENV: cienv
OPAQUE_POINTERS: yes

steps:

- powershell: |
Expand Down
7 changes: 7 additions & 0 deletions buildscripts/incremental/test.cmd
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@

call activate %CONDA_ENV%

if "%OPAQUE_POINTERS%"=="yes" (
set LLVMLITE_ENABLE_OPAQUE_POINTERS=1
echo "Testing with opaque pointers enabled"
) else (
echo "Testing with opaque pointers disabled"
)

python runtests.py -v
8 changes: 8 additions & 0 deletions buildscripts/incremental/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,18 @@ set -v -e

python --version

if [ "$OPAQUE_POINTERS" == "yes" ]; then
export LLVMLITE_ENABLE_OPAQUE_POINTERS=1
echo "Testing with opaque pointers enabled"
else
echo "Testing with opaque pointers disabled"
fi

if [ "$WHEEL" == "yes" ]; then
cd dist
python -m llvmlite.tests -v
else
python runtests.py -v
fi

if [ "$RUN_COVERAGE" == "yes" ]; then coverage run runtests.py; fi

0 comments on commit a9ae1f2

Please sign in to comment.