This repository has been archived by the owner on Sep 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a readme detailing the upstream llvm repository
- Loading branch information
0 parents
commit 47e1f4f
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# avr-llvm | ||
|
||
This repository has been merged into [upstream llvm](http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AVR/). | ||
|
||
In order to compile stock LLVM will AVR support enabled, `-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=AVR` must be passed to CMake. | ||
|
||
## Compiling the up-to-date backend from upstream LLVM | ||
|
||
```bash | ||
# Clone the LLVM repository | ||
git clone https://github.com/llvm-mirror/llvm.git | ||
|
||
# optionally clone clang into the 'tools' folder for C/C++ compiler support | ||
git clone https://github.com/llvm-mirror/clang.git llvm/tools/clang | ||
|
||
# where we want to place object files/executables | ||
mkdir build && cd build | ||
|
||
# Run CMake to generate makefiles | ||
cmake ../llvm -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=AVR | ||
|
||
# Compile everything | ||
make | ||
``` | ||
|
||
Once this is done, you will have a number executables in `build/bin`. | ||
|