Merge pull request #303 from janderholm/nativebuilds
Fix *-native cargo builds
This commit is contained in:
@@ -9,7 +9,7 @@ inherit cargo_common
|
|||||||
CARGO = "cargo"
|
CARGO = "cargo"
|
||||||
|
|
||||||
# We need cargo to compile for the target
|
# We need cargo to compile for the target
|
||||||
BASEDEPENDS_append_class-target = " cargo-native"
|
BASEDEPENDS_append = " cargo-native"
|
||||||
|
|
||||||
# Ensure we get the right rust variant
|
# Ensure we get the right rust variant
|
||||||
DEPENDS_append_class-target = " virtual/${TARGET_PREFIX}rust ${RUSTLIB_DEP}"
|
DEPENDS_append_class-target = " virtual/${TARGET_PREFIX}rust ${RUSTLIB_DEP}"
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ export LIBSSH2_SYS_USE_PKG_CONFIG = "1"
|
|||||||
|
|
||||||
BBCLASSEXTEND = "native"
|
BBCLASSEXTEND = "native"
|
||||||
|
|
||||||
# When building cargo-native we don't have a built cargo to use so we must use
|
# When building cargo-native we don't have cargo-native to use and depend on,
|
||||||
# the snapshot to bootstrap the build of cargo
|
# so we must use the locally set up snapshot to bootstrap the build.
|
||||||
|
BASEDEPENDS_remove_class-native = "cargo-native"
|
||||||
CARGO_class-native = "${WORKDIR}/${CARGO_SNAPSHOT}/bin/cargo"
|
CARGO_class-native = "${WORKDIR}/${CARGO_SNAPSHOT}/bin/cargo"
|
||||||
|
|||||||
Reference in New Issue
Block a user