Skip to content

Commit

Permalink
mozjs: Set appropriate --target for riscv
Browse files Browse the repository at this point in the history
Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Dec 30, 2024
1 parent 230ddc9 commit cc2e02b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion meta-oe/recipes-extended/mozjs/mozjs-115_115.17.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,14 @@ ICU:powerpc:toolchain-clang = ""

LDFLAGS:append:riscv32 = " -latomic"

TARGETSYS ?= "${RUST_HOST_SYS}"
TARGETSYS:riscv32 = "${HOST_SYS}"

do_configure() {
cd ${B}
python3 ${S}/configure.py \
--enable-project=js \
--target=${RUST_HOST_SYS} \
--target=${TARGETSYS} \
--host=${BUILD_SYS} \
--prefix=${prefix} \
--libdir=${libdir} \
Expand Down
6 changes: 5 additions & 1 deletion meta-oe/recipes-extended/mozjs/mozjs-128_128.5.2.bb
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,15 @@ ICU:powerpc:toolchain-clang = ""

LDFLAGS:append:riscv32 = " -latomic"

TARGETSYS ?= "${RUST_HOST_SYS}"
TARGETSYS:riscv32 = "${HOST_SYS}"
TARGETSYS:riscv64 = "${HOST_SYS}"

do_configure() {
cd ${B}
python3 ${S}/configure.py \
--enable-project=js \
--target=${RUST_HOST_SYS} \
--target=${TARGETSYS} \
--host=${BUILD_SYS} \
--prefix=${prefix} \
--libdir=${libdir} \
Expand Down

0 comments on commit cc2e02b

Please sign in to comment.