Skip to content

Commit e7c9f95

Browse files
committed
prefer flang from LLVM over visual studio's version
1 parent 638b641 commit e7c9f95

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/build_steps_win_arm64.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ echo Setting up ARM64 Developer Command Prompt and running CMake...
9393
:: Initialize VS ARM64 environment
9494
for /f "usebackq tokens=*" %%i in (`"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -property installationPath`) do call "%%i\VC\Auxiliary\Build\vcvarsall.bat" arm64
9595

96+
:: Prefer LLVM flang
97+
PATH=C:\Program Files\LLVM\bin;%PATH%
98+
9699
:: Run CMake and Ninja build
97100
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DUSE_THREADS=1 -DNUM_THREADS=24 -DTARGET=ARMV8 -DBUILD_SHARED_LIBS=ON -DARCH=arm64 ^
98101
-DBINARY=%build_bits% -DCMAKE_SYSTEM_PROCESSOR=ARM64 -DCMAKE_C_COMPILER=clang-cl ^

0 commit comments

Comments
 (0)