diff --git a/CMakeSettings.json b/CMakeSettings.json new file mode 100644 index 0000000..9471e22 --- /dev/null +++ b/CMakeSettings.json @@ -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": [] + } + ] +} diff --git a/README.md b/README.md new file mode 100644 index 0000000..bde8c8a --- /dev/null +++ b/README.md @@ -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 +```