f6c7789c95
Instead of building a full compiler, we can use rust-native to cross-compile. All we need is a cross-compiled standard library, which libstd-rs builds, and a compiler spec file. rust-cross is now just used to generate the json spec file for cross-compiling, which is naturally much faster.
12 lines
307 B
BlitzBasic
12 lines
307 B
BlitzBasic
inherit rust-installer
|
|
require rust.inc
|
|
|
|
DEPENDS += "rust-llvm"
|
|
|
|
# Otherwise we'll depend on what we provide
|
|
INHIBIT_DEFAULT_RUST_DEPS_class-native = "1"
|
|
# We don't need to depend on gcc-native because yocto assumes it exists
|
|
PROVIDES_class-native = "virtual/${TARGET_PREFIX}rust"
|
|
|
|
BBCLASSEXTEND = "native"
|