Commit bf8cc11d authored by Jeremy Soller's avatar Jeremy Soller Committed by GitHub
Browse files

Merge pull request #15 from ids1024/target

Determine default target based on LLVM triple at build
parents 9efeabe1 d03fd7e3
name = "pkgutils"
version = "0.1.1"
build = ""
name = "pkgutils"
use std::env;
fn main() {
println!("cargo:rustc-env=PKG_DEFAULT_TARGET={}", env::var("TARGET").unwrap());
......@@ -129,10 +129,7 @@ fn main() {
let target = matches.value_of("target")
.expect(concat!("pkg was not compiled with a target, ",
"and --target was not specified"));
let target = matches.value_of("target").unwrap_or(env!("PKG_DEFAULT_TARGET"));
let repo = Repo::new(target);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment