Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Add Target APIs #12

merged 6 commits into from

2 participants


This pull request depends on #11, but otherwise does not include backwards-incompatible changes.

It adds a proper LLVM::Target API (complete with LLVM::TargetMachine and LLVM::TargetDataLayout), which will in future allow to use ruby-llvm to compile binaries without any external LLVM tools. (You still need gcc, but that's an LLVM deficiency).

It also deprecates LLVM.init_x86 in favor of a platform-independent LLVM.init_jit replacement. As another option, it adds LLVM::Target.init_native, LLVM::Target.init_all and LLVM::Target.init('X86') among other APIs.

@whitequark whitequark referenced this pull request in jvoorhis/ruby-llvm

Target-specific functions are not wrapped in Ruby APIs #22


This looks great. I'll try it out this evening.

@jvoorhis jvoorhis merged commit cdd5f42 into from
@whitequark whitequark deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.