GIT=https://gitlab.redox-os.org/redox-os/rust.git BRANCH=compile-redox BUILD_DEPENDS=(llvm) DEPENDS="gcc cargo" PREPARE_COPY=0 function recipe_version { printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" skip=1 } function recipe_update { echo "skipping update" skip=1 } function recipe_build { config="$(realpath ../config.toml)" source="$(realpath ../source)" unset AR AS CC CXX LD NM OBJCOPY OBJDUMP RANLIB READELF STRIP python "$source/x.py" dist --config "$config" --jobs $(nproc) --incremental skip=1 } function recipe_test { echo "skipping test" skip=1 } function recipe_clean { make clean skip=1 } function recipe_stage { binpath="$1/bin" libpath="$1/lib/rustlib/${TARGET}/lib" mkdir -p "$binpath" "$libpath" cp -fv "build/"*"/stage2-rustc/${TARGET}/release/rustc_binary" "$binpath/rustc" cp -fv "build/"*"/stage2-tools/${TARGET}/release/rustdoc_tool_binary" "$binpath/rustdoc" cp -fv $(find "build/"*"/stage2/lib/rustlib/${TARGET}/lib/" -type f | grep -v librustc) "$libpath" ${STRIP} "$binpath/"* skip=1 }