hackndev / zinc

The bare metal stack for rust
zinc.rs
Apache License 2.0
1k stars 100 forks source link

build: feature gate arch and cpu specific code #316

Closed mcoffin closed 9 years ago

mcoffin commented 9 years ago

This will make zinc compatible for compilation for the build system.

Eventually, we should move architecture specific code somewhere, but this will suffice until then.

mcoffin commented 9 years ago

Closes #303

mcoffin commented 9 years ago

It would be nice if rustc would pass target_cpu as a cfg attribute, but it does not. might consider asking upstream if they'll add it.

This would get rid of the cpu_* features in cargo.

mcoffin commented 9 years ago

retest this please

farcaller commented 9 years ago

And this is why you don't use socat to proxy the requests into vm. LGTM though.