1 Star 1 Fork 0

mojerro/compiler-explorer-infra

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build_cross_compilers.sh 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
Matt Godbolt 提交于 2022-09-26 10:20 +08:00 . Misc fixups post poetry
#!/bin/bash
set -exuo pipefail
finish() {
ce builder stop
}
trap finish EXIT
ce builder status
ce builder start
LOG_DIR=~/build_logs
BUILD_FAILED=0
run_on_build() {
local logdir=${LOG_DIR}/$1
mkdir -p "${logdir}"
shift
set +e
date >"${logdir}/begin"
if ! ce builder exec -- "$@" 2>&1 | tee "${logdir}/log"; then
BUILD_FAILED=1
echo FAILED >"${logdir}/status"
else
echo OK >"${logdir}/status"
fi
date >"${logdir}/end"
set -e
}
build_cross() {
local ARCH=$1
local VERSION=$2
shift 2
local OUTPUT=s3://compiler-explorer/opt/${ARCH}-gcc-${VERSION}.tar.xz
if aws s3 ls "${OUTPUT}"; then
echo "File ${OUTPUT} exists, skipping"
return
fi
run_on_build gcc-cross \
sudo docker run --rm --name gcc-cross.build -v/home/ubuntu/.s3cfg:/home/gcc-user/.s3cfg:ro compilerexplorer/gcc-cross-builder \
bash ./build.sh "${ARCH}" "${VERSION}" s3://compiler-explorer/opt/
}
build_cross powerpc64le at12
build_cross powerpc64 at12
build_cross powerpc64le at13
build_cross powerpc64 at13
build_cross arm 6.4.0
build_cross arm 7.3.0
build_cross arm 8.2.0
build_cross arm64 6.4.0
build_cross arm64 7.3.0
build_cross arm64 8.2.0
build_cross riscv64 8.2.0
build_cross riscv32 8.2.0
build_cross k1 7.4.1
build_cross k1 7.5.0
exit ${BUILD_FAILED}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mojerro/compiler-explorer-infra.git
git@gitee.com:mojerro/compiler-explorer-infra.git
mojerro
compiler-explorer-infra
compiler-explorer-infra
main

搜索帮助