Infrastructure for Canary builds of LLVM for Accera
To build the release version of LLVM for a given ref (llvmorg-14.0.0-rc4):
git submodule init
git submodule update
# to build multi-arch
docker buildx build . \
--build-arg LLVM_RELEASE=llvmorg-14.0.0-rc4 --tag lisaong/accera-llvm-ubuntu:main-llvmorg-14.0.0-rc4 \
--platform linux/arm64,linux/amd64 \
--load
# or, to build for just the host platform
docker build . \
--build-arg LLVM_RELEASE=llvmorg-14.0.0-rc4 --tag lisaong/accera-llvm-ubuntu:main-llvmorg-14.0.0-rc4
To build both release and debug versions of LLVM for a given ref (llvmorg-13.0.1):
# to build multi-arch
docker buildx build . \
--build-arg LLVM_BUILD_TYPE=debug \
--build-arg LLVM_RELEASE=llvmorg-13.0.1 --tag lisaong/accera-llvm-ubuntu:main-llvmorg-13.0.1 \
--platform linux/arm64,linux/amd64 \
--load
# or, to build for just the host platform
docker build . \
--build-arg LLVM_BUILD_TYPE=debug \
--build-arg LLVM_RELEASE=llvmorg-13.0.1 --tag lisaong/accera-llvm-ubuntu:main-llvmorg-13.0.1
Building debug-only LLVM is not supported by vcpkg.
To build locally without docker (only Linux is supported currently):
sh build.sh llvmorg-13.0.1
To incrementally build locally after running build.sh
at least once, run:
sh build.dev.sh