intermezzOS / kernel

A hobby operating system, in Rust
http://intermezzos.github.io/
Apache License 2.0
1.39k stars 91 forks source link

investigate bkernel's build.rs for easier cross-compiled libcore #5

Closed steveklabnik closed 8 years ago

steveklabnik commented 8 years ago

@rasendubi has been doing interesting stuff:

https://github.com/rasendubi/bkernel/blob/master/build.rs

this might be a decent idea instead of the current "toss it in some directory" mess.

phil-opp commented 8 years ago

I just tried it and I think it doesn't work for dependencies since build scripts are only invoked for the main crate. It works in the linked repo because the same build script is executed for all dependencies (which we can't do for crates from crates.io).

An alternative solution could be cargo's support for overriding dependencies. But unfortunately it only works for crates from crates.io.

steveklabnik commented 8 years ago

Ah, i see.