Skip to content

Commit 93ed1b3

Browse files
authored
Merge pull request #466 from meta-rust/fix-proc-macro
Fix "could not compile proc-macro2"
2 parents b8aba86 + 58ea4ea commit 93ed1b3

File tree

5 files changed

+8
-1
lines changed

5 files changed

+8
-1
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ jobs:
2828
. oe-init-build-env
2929
mv ../../sstate-cache . || true
3030
bitbake-layers add-layer ../../meta-openembedded/meta-oe
31-
bitbake-layers add-layer ../../meta-rust
31+
sed -ie "/^BBLAYERS/a $(readlink -f ../../meta-rust) \\\\" conf/bblayers.conf
3232
echo 'PARALLEL_MAKE:pn-rust-llvm-native = "-j2"' >> conf/local.conf
3333
echo 'TOOLCHAIN_HOST_TASK:append = " packagegroup-rust-cross-canadian-${MACHINE}"' >> conf/local.conf
3434
echo 'PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"' >> conf/local.conf
3535
echo 'INHERIT:remove = "uninative"' >> conf/local.conf
36+
echo 'require conf/distro/include/rust_versions.inc' >> conf/local.conf
3637
- name: Run bitbake
3738
run: |
3839
cd poky

classes-recipe

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
classes/

classes/crate-fetch.bbclass

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
#
99

1010
python () {
11+
import sys
12+
layerdir = d.getVar("RUSTLAYER")
13+
sys.path.insert(0, layerdir + "/lib")
1114
import crate
1215
bb.fetch2.methods.append( crate.Crate() )
1316
}

conf/layer.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# We have a conf and classes directory, append to BBPATH
2+
RUSTLAYER = "${LAYERDIR}"
23
BBPATH .= ":${LAYERDIR}"
34

45
# We have a recipes directory, add to BBFILES
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
S = "${RUSTSRC}/library/sysroot"

0 commit comments

Comments
 (0)