Skip to content

Commit c49af43

Browse files
committed
github: Skip dependencies (libxml2, terminfo) in linux builds that have little value in our context
The fewer dynamic library dependencies we have, the easier it is to run the binaries on other linux distributions than the one it was built on. In the docker based releases, these libraries haven't been installed and thus haven't been used so far. The docker based releases haven't linked against zlib though, but keep linking against that, since that should have a quite stable ABI and not cause much binary compatibility issues.
1 parent af99275 commit c49af43

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ jobs:
5959
TAG: ${{needs.prepare.outputs.TAG}}
6060
run: |
6161
sudo apt-get update && sudo apt-get install ninja-build
62-
./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb
62+
# Skip dynamic library dependencies that might make it harder to
63+
# run the binaries on other distros (and that have little use within
64+
# llvm-mingw).
65+
LLVM_CMAKEFLAGS="-DLLVM_ENABLE_LIBXML2=OFF -DLLVM_ENABLE_TERMINFO=OFF" ./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb
6366
.github/workflows/store-version.sh install/llvm-mingw/versions.txt
6467
cd install
6568
DISTRO=ubuntu-$(grep DISTRIB_RELEASE /etc/lsb-release | cut -f 2 -d =)-$(uname -m)
@@ -92,7 +95,10 @@ jobs:
9295
MINGW_W64_VERSION: ${{needs.prepare.outputs.MINGW_W64_VERSION}}
9396
run: |
9497
sudo apt-get update && sudo apt-get install ninja-build
95-
./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb --enable-asserts
98+
# Skip dynamic library dependencies that might make it harder to
99+
# run the binaries on other distros (and that have little use within
100+
# llvm-mingw).
101+
LLVM_CMAKEFLAGS="-DLLVM_ENABLE_LIBXML2=OFF -DLLVM_ENABLE_TERMINFO=OFF" ./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb --enable-asserts
96102
.github/workflows/store-version.sh install/llvm-mingw/versions.txt
97103
cd install
98104
tar -Jcf ../llvm-mingw-linux.tar.xz llvm-mingw

0 commit comments

Comments
 (0)