Automated tools help developers on Windows platforms building LLVM and clang.
Often you need to change the Power Shell execution policy
Get-ExecutionPolicyOutput:
Restricted
Please run PowerShell with administrator rights, and Enter:
Set-ExecutionPolicy RemoteSignedClone clangbuilder on Github
git clone https://github.com/fstudio/clangbuilder.git clangbuilderClick the Install.bat in the clangbuilder directory, this will run PowerShell startup bin/Installer.ps1
The installation script will compile ClangbuilderUI and create a shortcut, download required packages.
Directory layout is as follows:
Clangbuilder Now Only support use Visual C++ build Clang LLVM LLDB.
Best Visual Studio Version:
VisualStudio 2015
Additional, Your can use MSYS2, use pacman install Clang.
pacman -S clangYour can click ClangbuilderUI, select your Visual Studio Version and Arch, and configuration
./bin/clangbuilder- Best Platform is Windows 10 x64
- Select
Use Clean Environmentwill reset current process Environment PATH value, Resolve conflict environment variables - If your will build lldb, your should install python3.
When you only need to start a console environment, you can click on the Environment Console。
You can modify config/packages.json,
and then double-click install.bat to the software you need as part of the Clangbuilder is added to the environment
You can add extranl lib, such as z3 , more info to view ExternalLibs.md
If your memory is small, use ninja to build LLVM, and in the process of linking, the build process is slow due to memory contention. And the computer may even lose its response.
Link clang requre 1.5GB memory,other require 0.8GB,and Ninja create N+ (processor default 6) link process, requre (0.8xN+0.7)GB or great memory
Author: Force.Charlie
Copyright © 2017 ForceStudio. All Rights Reserved.

