☰
Current Page
Main Menu
Home
Home
Editing
LLVMBackend
Edit
Preview
h1
h2
h3
Keybinding
default
vim
emacs
Markup
Markdown
Plain Text
Pod
RDoc
reStructuredText
AsciiDoc
BibTeX
Creole
MediaWiki
Org-mode
Textile
Help 1
Help 1
Help 1
Help 2
Help 3
Help 4
Help 5
Help 6
Help 7
Help 8
Autosaved text is available. Click the button to restore it.
Restore Text
--- title: LLVMBackend --- # Docs * <http://llvm.org/docs/GettingStarted.html> * <http://jonathan2251.github.io/lbd/about.html> # Source git clone http://llvm.org/git/llvm.git # upstream is SVN so always rebase master git config branch.master.rebase true # clangc cd tools git clone http://llvm.org/git/clang.git git config branch.master.rebase true # Build ## Prerequisites sudo apt-get build-dep llvm clang sudo apt-get install ninja-build ccache ## Extra RAM Had 4GB with 6GB zram0. Bumping zram0 to 8GB worked. cat /sys/block/zram0/disksize # current size, readonly while in use swapoff /dev/zram0 rmmod zram # what's the proper way to disable a zram dev? modprobe zram echo 8G > /sys/block/zram0/disksize mkswap /dev/zram0 swapon /dev/zram0 ## Compile mkdir build && cd build cmake -G Ninja \ -DLLVM\_TARGETS\_TO_BUILD="X86;MSP430" \ -DCMAKE\_INSTALL\_PREFIX=/usr/local \ -DLLVM\_BUILD\_LLVM_DYLIB=true \ ../ ninja [1]: LLVMBackend?action=sourceblock&num=1 [2]: LLVMBackend?action=sourceblock&num=2 [3]: LLVMBackend?action=sourceblock&num=3 [4]: LLVMBackend?action=sourceblock&num=4 <!-- vim: filetype=markdown -->
Uploading file...
Sidebar
# SideBar * [Home][1] * [Projects][2] * * * <!-- --> * [Code][3] * [Tech][4] * [Network][5] * [MediaCentre][6] * [UAV][7] * * * <!-- --> * [Travel][8] * [Music][9] * [Horse Riding][10] * [Study][11] * [Games][12] * [Other Activities][13] * * * <!-- --> * [Car][14] * [House][15] * [Watch][16] * [Clothing][17] * [Miscellany][18] * * * [1]: /Home [2]: /Projects [3]: /Code/Code [4]: /Tech/Tech [5]: /Network/Network [6]: /MediaCentre/MediaCentre [7]: /UAV/UAV [8]: /Travel/Travel [9]: /Music/Music [10]: /HorseRiding/HorseRiding [11]: /Study/Study [12]: /Games/Games [13]: /Do/Do [14]: /Car/Car [15]: /House/House [16]: /Watch/Watch [17]: /Clothing/Clothing [18]: /Miscellany/Miscellany <!-- vim: filetype=markdown -->
Edit message:
Cancel