compiler-rt: pass only env needed
Build compiler-rt how upstream Rust does it and don't rely on the entire environment being passed to the build process.
This commit is contained in:
@@ -12,13 +12,14 @@ require rust-source-${PV}.inc
|
|||||||
|
|
||||||
S = "${WORKDIR}/rustc-${PV}/src/compiler-rt"
|
S = "${WORKDIR}/rustc-${PV}/src/compiler-rt"
|
||||||
|
|
||||||
# Pick up $CC from the environment
|
|
||||||
EXTRA_OEMAKE += "-e"
|
|
||||||
|
|
||||||
do_compile () {
|
do_compile () {
|
||||||
oe_runmake -C ${S} \
|
oe_runmake -C ${S} \
|
||||||
ProjSrcRoot="${S}" \
|
ProjSrcRoot="${S}" \
|
||||||
ProjObjRoot="${B}" \
|
ProjObjRoot="${B}" \
|
||||||
|
CC="${CC}" \
|
||||||
|
AR="${AR}" \
|
||||||
|
RANLIB="${RANLIB}" \
|
||||||
|
CFLAGS="${CFLAGS}" \
|
||||||
TargetTriple=${HOST_SYS} \
|
TargetTriple=${HOST_SYS} \
|
||||||
triple-builtins
|
triple-builtins
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user