diff options
Diffstat (limited to 'meta/classes-recipe/cargo_common.bbclass')
| -rw-r--r-- | meta/classes-recipe/cargo_common.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes-recipe/cargo_common.bbclass b/meta/classes-recipe/cargo_common.bbclass index 82ab25b59c..1ca0be471c 100644 --- a/meta/classes-recipe/cargo_common.bbclass +++ b/meta/classes-recipe/cargo_common.bbclass | |||
| @@ -149,6 +149,10 @@ python cargo_common_do_patch_paths() { | |||
| 149 | } | 149 | } |
| 150 | do_configure[postfuncs] += "cargo_common_do_patch_paths" | 150 | do_configure[postfuncs] += "cargo_common_do_patch_paths" |
| 151 | 151 | ||
| 152 | do_compile:prepend () { | ||
| 153 | oe_cargo_fix_env | ||
| 154 | } | ||
| 155 | |||
| 152 | oe_cargo_fix_env () { | 156 | oe_cargo_fix_env () { |
| 153 | export CC="${RUST_TARGET_CC}" | 157 | export CC="${RUST_TARGET_CC}" |
| 154 | export CXX="${RUST_TARGET_CXX}" | 158 | export CXX="${RUST_TARGET_CXX}" |
