forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 14
Home
Jake Goulding edited this page Apr 28, 2017
·
9 revisions
cargo build --release --target=./arduino.json --verbose
# grab the `rustc ...` invocation
# add `--emit=llvm-ir`
# Look for `target/arduino/release/deps/foo.0.ll`
cmake \
-D CMAKE_BUILD_TYPE=Debug \
-D LLVM_ENABLE_ASSERTIONS=ON \
-D LLVM_TARGETS_TO_BUILD="X86" \
-D LLVM_EXPERIMENTAL_TARGETS_TO_BUILD="AVR" \
-D LLVM_INCLUDE_EXAMPLES=OFF \
-D LLVM_INCLUDE_TESTS=OFF \
-D LLVM_INCLUDE_DOCS=OFF \
-D LLVM_ENABLE_ZLIB=OFF \
-D WITH_POLLY=OFF \
-D LLVM_ENABLE_TERMINFO=OFF \
-D LLVM_ENABLE_LIBEDIT=OFF \
..