Skip to content

axw/gollvm

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 59 commits behind go-llvm:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

GoLLVM

LLVM bindings for The Go Programming Language.

Prerequisites

  • LLVM 3.1+. LLVM must have been built with shared libraries enabled.
  • Go 1.0+.

The author has only built and tested with Linux, but there is no particular reason why GoLLVM should not work with other operating systems.

Installation

To install, run the following (assuming you have curl and Go installed):

curl https://raw.github.com/axw/gollvm/master/install.sh | sh

Alternatively, you can use go get directly, but you must then set the CGO_CFLAGS and CGO_LDFLAGS environment variables:

$ export CGO_CFLAGS=`llvm-config --cflags`
$ export CGO_LDFLAGS="`llvm-config --ldflags` -Wl,-L`llvm-config --libdir` -lLLVM-`llvm-config --version`"
$ go get github.com/axw/gollvm/llvm

About

LLVM bindings for the Go programming language

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published