-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add README with instructions for creating an LLVM bundle on Windows
- Loading branch information
0 parents
commit 17e8142
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "x64-Clang-Release", | ||
"generator": "Ninja", | ||
"configurationType": "Release", | ||
"buildRoot": "${projectDir}\\out\\build\\${name}", | ||
"installRoot": "${projectDir}\\out\\install\\${name}", | ||
"cmakeCommandArgs": "-DLLVM_ENABLE_PROJECTS=clang", | ||
"buildCommandArgs": "", | ||
"ctestCommandArgs": "", | ||
"inheritEnvironments": [ "clang_cl_x64_x64" ], | ||
"variables": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Custom LLVM bundles # | ||
|
||
This is a repository to hold custom built LLVM bundles. | ||
|
||
## Windows ## | ||
|
||
* Download the desired version of LLVM. | ||
|
||
* Place the file `CMakeSettings.json` that is in this repository within the directory called `llvm` within the downloaded LLVM. | ||
|
||
* Open the directory `llvm` with Visual Studio and let it configure with the `CMakeSettings.json`. | ||
|
||
* Build and install using the `x64-Clang-Release` configuration. | ||
|
||
* The install should be in the `out\install` directory, bundle it using `cmake` as: | ||
|
||
```sh | ||
$ cd .\out\install\ | ||
# NOTE: Switch out the version (here 11.0.0) | ||
# This takes a long time | ||
$ cmake -E tar -cJ clang+llvm-11.0.0-x86_64-windows.tar.xz x64-Clang-Release | ||
``` |