Skip to content

Commit d63555a

Browse files
committed
always use llvm-mt
1 parent 0167f8d commit d63555a

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

.github/workflows/windows.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ jobs:
3838
python-version: 3.11
3939
architecture: ${{ matrix.plat }}
4040

41+
- name: Download and install LLVM (arm64) and other tools
42+
shell: pwsh
43+
run: |
44+
Invoke-WebRequest https://github.com/llvm/llvm-project/releases/download/llvmorg-21.1.0/LLVM-21.1.0-woa64.exe -UseBasicParsing -OutFile LLVM-woa64.exe
45+
Start-Process -FilePath ".\LLVM-woa64.exe" -ArgumentList "/S" -Wait
46+
Invoke-WebRequest https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe -UseBasicParsing -Outfile rustup-init.exe
47+
$env:PATH="$env:PATH;$env:USERPROFILE\.cargo\bin"
48+
pip install anaconda-client
49+
python -m pip install cmake ninja
50+
4151
- name: Setup conda
4252
# No conda for arm64
4353
if: matrix.os == 'windows-latest'
@@ -49,22 +59,11 @@ jobs:
4959
miniforge-version: latest
5060

5161
- name: Install compilers and python from conda
52-
# No conda for arm64
62+
# No conda for arm64, but no flang-new for x86
5363
if: matrix.os == 'windows-latest'
5464
shell: bash -el {0}
5565
run: conda install compilers python==3.11 cmake ninja anaconda-client
5666

57-
- name: Download and install LLVM (arm64) and other tools
58-
if: matrix.os == 'windows-11-arm'
59-
shell: pwsh
60-
run: |
61-
Invoke-WebRequest https://github.com/llvm/llvm-project/releases/download/llvmorg-21.1.0/LLVM-21.1.0-woa64.exe -UseBasicParsing -OutFile LLVM-woa64.exe
62-
Start-Process -FilePath ".\LLVM-woa64.exe" -ArgumentList "/S" -Wait
63-
Invoke-WebRequest https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe -UseBasicParsing -Outfile rustup-init.exe
64-
$env:PATH="$env:PATH;$env:USERPROFILE\.cargo\bin"
65-
pip install anaconda-client
66-
python -m pip install cmake ninja
67-
6867
- name: Set env variables
6968
run: |
7069
echo "START_DIR=$PWD" >> $env:GITHUB_ENV

tools/build_steps_windows.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ cmake .. -G Ninja \
107107
-DCMAKE_Fortran_COMPILER=$FC \
108108
-DBUILD_SHARED_LIBS=ON \
109109
-DCMAKE_SYSTEM_PROCESSOR=$march \
110-
-DCMAKE_MT="$LLVM" \
110+
-DCMAKE_MT="C:\\Program Files\\LLVM\\llvm-mt.exe" \
111111
-DCMAKE_SYSTEM_NAME=Windows \
112112
-DSYMBOLPREFIX="scipy_" \
113113
-DLIBNAMEPREFIX="scipy_" \

0 commit comments

Comments
 (0)