Clang Build Environment On Windows, Long Term Evolution
Download from Github, If your known use Git
git clone https://github.com/fstudio/clangbuilder.git clangbuilder
Click the Install.bat in the clangbuilder directory, this will run PowerShell startup bin/Installer/Install.ps1
It is recommended that whenever you have PowerShell scripts, and try not to delete the project file in the tools directory.
Similarly, you can start a PowerShell runs Install.ps1, generally run PowerShell scripts on the Windows right-click menu option, you can right-click the menu "run with PowerShell" Above procedure does not require administrator privileges.
If you are unable to run the script, please enter
Get-ExecutionPolicy
Output:
Restricted
Please run PowerShell with administrator rights, and Enter:
Set-ExecutionPolicy RemoteSigned
PowerShell, Enter:
&{$wc=New-Object System.Net.WebClient;$wc.Proxy=[System.Net.WebRequest]::DefaultWebProxy;$wc.Proxy.Credentials=[System.Net.CredentialCache]::DefaultNetworkCredentials;Invoke-Expression ($wc.DownloadString('https://raw.githubusercontent.com/fstudio/clangbuilder/master/bin/Installer/WebInstall.ps1'))}
Or:
Cmd Enter:
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "&{$wc=New-Object System.Net.WebClient;$wc.Proxy=[System.Net.WebRequest]::DefaultWebProxy;$wc.Proxy.Credentials=[System.Net.CredentialCache]::DefaultNetworkCredentials;Invoke-Expression ($wc.DownloadString('https://raw.githubusercontent.com/fstudio/clangbuilder/master/bin/Installer/WebInstall.ps1'))}"
Your Should Input Your ClangSetup Install Loaction!!!!
When Build Clang on Windows,Best of Visual Studio version
VisualStudio 2013 Update 4
Or Your can use Mingw-w64,your can cross compile LLVM on Linux ,Mingw-w64 Support it.
The Other,Your can use cmake to create MinGW Makefile,or NMake Makefile ,run it ,The C and C++ Compiler is Mingw-w64 tools ( i686-w64-mingw32-gcc ,x86_64-w64-mingw32-g++)
Run
PowerShell -File .\bin\ClangbuilderManager.ps1 -VisualStudio 120 -Arch x64 -Flavor Release -Clear -Static
ClangbuilderUI
- Best Platform is Windows 10 x64
- -Clear flag will reset current process Environment PATH value, Resolve conflict environment variables
- Build LLDB require Visual Studio 2015, When you not install Python 3.x ,Clangbuilder will download python.exe after inform you install.
- Build LLDB, not test on Windows x86, maybe cannot find PYTHONHOME.
First Author: Force.Charlie
Copyright © 2016 ForceStudio. All Rights Reserved.