Add a "host" crate for autodetecting the host. (#159)

* Add a "native" crate for autodetecting the host.

* Remove the redundant .gitignore.

* Use the proper builder for enabling subtarget flags.
This commit is contained in:
Dan Gohman
2017-09-20 16:14:26 -07:00
committed by GitHub
parent 8def91b4ad
commit f80ee7af39
3 changed files with 106 additions and 0 deletions

17
lib/native/Cargo.toml Normal file
View File

@@ -0,0 +1,17 @@
[package]
name = "cretonne-native"
version = "0.0.0"
authors = ["The Cretonne Project Developers"]
publish = false
description = "Support for targetting the host with Cretonne"
repository = "https://github.com/stoklund/cretonne"
license = "Apache-2.0"
[lib]
name = "cton_native"
[dependencies]
cretonne = { path = "../cretonne" }
[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies]
raw-cpuid = "3.0.0"