Skip to content
Snippets Groups Projects
Commit 575fdc8c authored by gnzlbg's avatar gnzlbg
Browse files

Do not try to build documentation for apple targets from Linux

parent 7017701b
No related merge requests found
......@@ -25,15 +25,25 @@ rm $PLATFORM_SUPPORT || true
printf '### Platform-specific documentation\n' >> $PLATFORM_SUPPORT
while read -r target; do
echo "documenting ${target}"
echo "documenting ${target}"
rustup target add "${target}" || true
xargo doc --target "${target}" \
--no-default-features --features extra_traits
case "${target}" in
*apple*)
# FIXME:
# We can't build docs of apple targets from Linux yet.
continue
;;
*)
;;
esac
cp -r "target/${target}/doc" "${TARGET_DOC_DIR}/${target}"
rustup target add "${target}" || true
xargo doc --target "${target}" \
--no-default-features --features extra_traits
echo "* [${target}](${target}/libc/index.html)" >> $PLATFORM_SUPPORT
cp -r "target/${target}/doc" "${TARGET_DOC_DIR}/${target}"
echo "* [${target}](${target}/libc/index.html)" >> $PLATFORM_SUPPORT
done < targets
# Replace <div class="platform_support"></div> with the contents of $PLATFORM_SUPPORT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment