From 75b3b171c1d9fb335733ecf74fc5fd5ac28f2c7f Mon Sep 17 00:00:00 2001 From: Cody P Schafer Date: Tue, 26 May 2015 10:26:03 -0400 Subject: [PATCH] rust: only depend on rust-native if we're using it for our build --- recipes/rust/rust.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/rust/rust.inc b/recipes/rust/rust.inc index b810798..8b87b45 100644 --- a/recipes/rust/rust.inc +++ b/recipes/rust/rust.inc @@ -380,7 +380,7 @@ USE_LOCAL_RUST_class-native ?= "${@base_conditional('USE_LOCAL_NATIVE_RUST', '0' # Otherwise we'll depend on what we provide INHIBIT_DEFAULT_RUST_DEPS_class-cross = "1" -DEPENDS_class-cross += "rust-native" +DEPENDS_class-cross += "${@base_conditional('USE_LOCAL_RUST', '1', 'rust-native', '')}" DEPENDS_class-cross += "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}compilerlibs virtual/libc" PROVIDES_class-cross = "virtual/${TARGET_PREFIX}rust" PN_class-cross = "rust-cross-${TARGET_ARCH}"