Skip to content

Jman420/llvm_for_android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building LLVM for Android

This repository contains scripts and instructions for cross-compiling LLVM for use on Android Devices.

Note

Cross-compiling LLVM requires at a minimum that llvm-tblgen be compiled for the Host Machine. The build_llvm_host.ps1 attempts to build the minimum binaries necessary to successfully compile llvm-tblgen for the Host Machine to be used in our Cross-compilation. That script can be modified to build larger parts of the LLVM Codebase if necessary.

Requirements

Steps

  • Download latest release of LLVM Source Code from http://releases.llvm.org/
  • Open the LLVM Source Code Archive and extract the contents (not the actual folder) of the 'llvm-x.x.x.src' to /llvm-src/
  • Execute the build_llvm_host.ps1 script via PowerShell
  • Execute the build_llvm_android.sh script via Bash Prompt
  • Resulting files are in /llvm-build-android/

About

LLVM Build Scripts for Android

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published