rust compiler/builder package, new llvm variants

This commit is contained in:
Tom Scogland
2016-05-22 11:14:46 -07:00
parent 9bd4bc02d6
commit 00de72272d
3 changed files with 35 additions and 9 deletions

View File

@@ -10,6 +10,9 @@ class RustBindgen(Package):
version('0.16', tag='0.16', git='https://github.com/crabtw/rust-bindgen')
extends("rust")
depends_on("llvm")
def install(self, spec, prefix):
cargo('install', '--root', prefix)
env = dict(os.environ)
env['LIBCLANG_PATH'] = os.path.join(spec['llvm'].prefix, 'lib')
cargo('install', '--root', prefix, env=env)