Skip to content

Commit a31c33a

Browse files
committed
use clang only on qemu platforms
1 parent eb7978f commit a31c33a

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/posix.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ jobs:
6262
MB_ML_LIBC: ${{ matrix.MB_ML_LIBC }}
6363
MB_ML_VER: ${{ matrix.MB_ML_VER }}
6464
INTERFACE64: ${{ matrix.INTERFACE64 }}
65-
BUILD_DIR: ${{ github.workspace }}
6665
PLAT: ${{ matrix.PLAT }}
67-
OS-NAME: ${{ matrix.os }}
6866

6967
steps:
7068
- uses: actions/checkout@v6.0.1

ci-before-build.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,15 @@ fi
2424
sed -e "s/^VERSION = .*/VERSION = ${version}/" -i.bak OpenBLAS/Makefile.rule
2525
echo "creating wheel from $OPENBLAS_COMMIT (NIGHTLY is $NIGHTLY)"
2626

27-
if [ "$(uname)" != "Darwin" ]; then
28-
./tools/install-static-clang.sh
29-
export PATH=/opt/clang/bin:$PATH
30-
fi
27+
case "$PLAT" in
28+
ppc64le|s390x|riscv64)
29+
./tools/install-static-clang.sh
30+
export PATH=/opt/clang/bin:$PATH
31+
CC="/opt/clang/bin/clang"
32+
CXX="/opt/clang/bin/clang++"
33+
LDFLAGS="-fuse-ld=lld"
34+
;;
35+
esac
3136

3237
# Build OpenBLAS
3338
source build-openblas.sh

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,5 @@ environment-pass = [
5454
"OS-NAME",
5555
"RUNNER_ARCH",
5656
]
57-
[tool.cibuildwheel.linux]
58-
environment = { CC = "/opt/clang/bin/clang", CXX = "/opt/clang/bin/clang++", LDFLAGS = "-fuse-ld=lld" }
59-
6057
[project.entry-points.pkg_config]
6158
scipy-openblas = 'scipy_openblas64.lib.pkgconfig'

0 commit comments

Comments
 (0)