From 72aa4ef3ab7abb00f4dd2107f5d858a1f655b980 Mon Sep 17 00:00:00 2001 From: Alistair Francis Date: Thu, 26 Dec 2019 16:06:56 -0800 Subject: [PATCH] rust: Use Python3 native for build Use Python3 as the native Python instead of Python2. Signed-off-by: Alistair Francis --- recipes-devtools/rust/rust-llvm.inc | 2 +- recipes-devtools/rust/rust.inc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes-devtools/rust/rust-llvm.inc b/recipes-devtools/rust/rust-llvm.inc index eb8052a..161ab1e 100644 --- a/recipes-devtools/rust/rust-llvm.inc +++ b/recipes-devtools/rust/rust-llvm.inc @@ -7,7 +7,7 @@ S = "${RUSTSRC}/src/llvm-project/llvm" LIC_FILES_CHKSUM ?= "file://LICENSE.TXT;md5=4c0bc17c954e99fd547528d938832bfa" -inherit cmake pythonnative +inherit cmake python3native DEPENDS += "ninja-native rust-llvm-native" diff --git a/recipes-devtools/rust/rust.inc b/recipes-devtools/rust/rust.inc index b8baecb..f1f013c 100644 --- a/recipes-devtools/rust/rust.inc +++ b/recipes-devtools/rust/rust.inc @@ -6,7 +6,7 @@ LICENSE = "MIT | Apache-2.0" inherit rust inherit cargo_common -DEPENDS += "file-native python-native" +DEPENDS += "file-native python3-native" DEPENDS_append_class-native = " rust-llvm-native" # We generate local targets, and need to be able to locate them @@ -474,7 +474,7 @@ rust_runx () { oe_cargo_fix_env - python src/bootstrap/bootstrap.py "$@" --verbose + python3 src/bootstrap/bootstrap.py "$@" --verbose } do_compile () {