Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ajkhoury/llvm-build-windows
https://github.com/ajkhoury/llvm-build-windows
build clang lld lldb llvm windows
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ajkhoury/llvm-build-windows
- Owner: ajkhoury
- Created: 2018-03-16T15:18:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-30T20:31:52.000Z (about 4 years ago)
- Last Synced: 2023-03-01T21:01:10.374Z (almost 2 years ago)
- Topics: build, clang, lld, lldb, llvm, windows
- Language: Batchfile
- Size: 17.6 KB
- Stars: 36
- Watchers: 2
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LLVM-Build-Windows
This is a helpful batch script to automate building the LLVM toolchain on Windows using MSVC or Clang itself!
Credits to MSYS project and [Matthew Oliver](https://github.com/Sibras)
## Usage
NOTE: If you want to build clang with clang itself, use the `Ninja` generator instead.
1. Open a command prompt (cmd.exe) and change directory to the root of where you want the root of your LLVM directory tree.
>cd C:\llvm-7.0.0
2. Place the build scripts at the root of the LLVM directory tree.
>git clone https://github.com/ajkhoury/LLVM-Build-Windows .
3. See here on how to obtain the LLVM source code for building:https://llvm.org/docs/GettingStarted.html#getting-started-quickly-a-summary
4. Use the `-help` argument for the script for more information:>build-llvm.bat -help
Detected 64 bit system...
Usage:
build-llvm.bat [options]Options:
-configure Configure the project
-build Build the project
-static Configure and build the project statically
-debug Build project with debug configuration
-target ARCH Set the target architecture
-directory DIRECTORY Use specified DIRECTORY for build directory
-help | --help | -? | /? Display this help and exit4. Run the build script for the target of your choice:
x64
>build-llvm.bat -configure -build -static -target x64 -directory build-release-x64
x86>build-llvm.bat -configure -build -static -target x86 -directory build-release-x86