diff options
| author | Yong He <yonghe@outlook.com> | 2025-02-03 12:33:45 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-03 12:33:45 -0800 |
| commit | bc2f20aab2303f059d767729e64b54d33ce9a12a (patch) | |
| tree | fa16fc3ec3a29a480433a9c373ce0ffacf598b70 /CONTRIBUTING.md | |
| parent | 0a6828572aa4cc1f0f99993e77c321799eb88cca (diff) | |
Fix native Windows ARM64 build. (#6244)
* Fix native Windows ARM64 build.
* Fix
---------
Co-authored-by: Yong He <yongh@outlook.com>
Diffstat (limited to 'CONTRIBUTING.md')
| -rw-r--r-- | CONTRIBUTING.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 24641c5b4..7fca908cf 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -93,6 +93,15 @@ Or you can build with the following command: C:\git\slang> cmake.exe --build --preset release ``` +On Windows ARM64, prebuilt binaries for LLVM isn't available. +Please build Slang without LLVM dependency by running: + +``` +cmake.exe --preset vs2022 -DSLANG_SLANG_LLVM_FLAVOR=DISABLE +``` + +during configuration step. + #### Linux Install CMake and Ninja. ``` @@ -136,6 +145,8 @@ Follow the instructions below if you wish to build `slang-llvm` locally. $ external/build-llvm.sh --source-dir build/slang-llvm_src --install-prefix build/slang-llvm_install ``` +> Note: On Windows you can use `external/build-llvm.ps1` in Powershell. + You need to use the following command to regenerate the Makefile: ``` $ cmake --preset default --fresh -DSLANG_SLANG_LLVM_FLAVOR=USE_SYSTEM_LLVM -DLLVM_DIR=build/slang-llvm_install/lib/cmake/llvm -DClang_DIR=build/slang-llvm_install/lib/cmake/clang |
