Skip to content

Commit d44665f

Browse files
Add documentation
1 parent 783249f commit d44665f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Tools/jit/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@ Homebrew won't add any of the tools to your `$PATH`. That's okay; the build scri
4343

4444
LLVM is downloaded automatically (along with other external binary dependencies) by `PCbuild\build.bat`.
4545

46+
By default, the architecture of the LLVM tools is auto-detected based on the host machine. To override this, set the `PreferredToolArchitecture` environment variable before building:
47+
48+
```sh
49+
set PreferredToolArchitecture=AMD64
50+
PCbuild\build.bat --experimental-jit
51+
```
52+
53+
Valid values are `AMD64`, `ARM64`, `x64`, and `x86` (the latter two are mapped to `AMD64`).
54+
4655
Otherwise, you can install LLVM 21 [by searching for it on LLVM's GitHub releases page](https://github.com/llvm/llvm-project/releases?q=21), clicking on "Assets", downloading the appropriate Windows installer for your platform (likely the file ending with `-win64.exe`), and running it. **When installing, be sure to select the option labeled "Add LLVM to the system PATH".**
4756

4857
Alternatively, you can use [chocolatey](https://chocolatey.org):

0 commit comments

Comments
 (0)