634498e0ac
Redid how compiler-rt is built by using the Rust makefiles to build it instead of compiler-rt's build system. Rust itself deviated from using compiler-rt's build system and provided their own rules requiring the source tree to be configured to use them.
25 lines
548 B
BlitzBasic
25 lines
548 B
BlitzBasic
SUMMARY = "Rust compiler run-time"
|
|
HOMEPAGE = "http://www.rust-lang.org"
|
|
SECTION = "devel"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://src/compiler-rt/LICENSE.TXT;md5=bf24bca27049b52e9738451aa55771d4"
|
|
|
|
require rust.inc
|
|
require rust-source-${PV}.inc
|
|
|
|
DEPENDS += "rust-llvm-native (=${PV})"
|
|
|
|
S = "${WORKDIR}/rustc-${PV}"
|
|
|
|
DISABLE_STATIC = ""
|
|
INHIBIT_DEFAULT_RUST_DEPS = "1"
|
|
|
|
do_compile () {
|
|
oe_runmake ${TARGET_SYS}/rt/libcompiler-rt.a
|
|
}
|
|
|
|
do_install () {
|
|
mkdir -p ${D}${libdir}
|
|
cp ${TARGET_SYS}/rt/libcompiler-rt.a ${D}${libdir}/libcompiler-rt.a
|
|
}
|