Skip to content
This repository has been archived by the owner on Sep 2, 2018. It is now read-only.

Commit

Permalink
Add a readme detailing the upstream llvm repository
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanmckay committed Sep 23, 2017
0 parents commit 47e1f4f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
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`.

0 comments on commit 47e1f4f

Please sign in to comment.