From d9fd50e07aa0e460bfb0ef41adcc102b25d04e0e Mon Sep 17 00:00:00 2001 From: auxten Date: Thu, 6 Apr 2023 10:54:18 +0800 Subject: [PATCH] Try export ARCHFLAGS="-arch x86_64" to fix faulty universal2 --- .github/workflows/build_wheels.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 4f68fa4f2c9..17f17bd20a6 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -218,7 +218,9 @@ jobs: run: | export PATH=$(brew --prefix llvm)/bin:/usr/local/opt/grep/libexec/gnubin:/usr/local/opt/binutils/bin:$PATH:/usr/local/opt/findutils/libexec/gnubin export CC=$(brew --prefix llvm)/bin/clang - export CXX=$(brew --prefix llvm)/bin/clang++ + export CXX=$(brew --prefix llvm)/bin/clang++ + # try https://github.com/pypa/wheel/issues/406#issuecomment-848095295 + export ARCHFLAGS="-arch x86_64" make wheel - name: Run simple test run: |