Skip to content

Commit

Permalink
Add README with instructions for creating an LLVM bundle on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
srydell committed Mar 2, 2021
0 parents commit 17e8142
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
16 changes: 16 additions & 0 deletions CMakeSettings.json
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": []
}
]
}
22 changes: 22 additions & 0 deletions README.md
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
```

0 comments on commit 17e8142

Please sign in to comment.