Skip to content

Commit 17e8142

Browse files
committed
Add README with instructions for creating an LLVM bundle on Windows
0 parents  commit 17e8142

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

CMakeSettings.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "x64-Clang-Release",
5+
"generator": "Ninja",
6+
"configurationType": "Release",
7+
"buildRoot": "${projectDir}\\out\\build\\${name}",
8+
"installRoot": "${projectDir}\\out\\install\\${name}",
9+
"cmakeCommandArgs": "-DLLVM_ENABLE_PROJECTS=clang",
10+
"buildCommandArgs": "",
11+
"ctestCommandArgs": "",
12+
"inheritEnvironments": [ "clang_cl_x64_x64" ],
13+
"variables": []
14+
}
15+
]
16+
}

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Custom LLVM bundles #
2+
3+
This is a repository to hold custom built LLVM bundles.
4+
5+
## Windows ##
6+
7+
* Download the desired version of LLVM.
8+
9+
* Place the file `CMakeSettings.json` that is in this repository within the directory called `llvm` within the downloaded LLVM.
10+
11+
* Open the directory `llvm` with Visual Studio and let it configure with the `CMakeSettings.json`.
12+
13+
* Build and install using the `x64-Clang-Release` configuration.
14+
15+
* The install should be in the `out\install` directory, bundle it using `cmake` as:
16+
17+
```sh
18+
$ cd .\out\install\
19+
# NOTE: Switch out the version (here 11.0.0)
20+
# This takes a long time
21+
$ cmake -E tar -cJ clang+llvm-11.0.0-x86_64-windows.tar.xz x64-Clang-Release
22+
```

0 commit comments

Comments
 (0)