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.
This commit is contained in:
1 parent
af99275e2e
commit
c49af4399a
1 file changed
+8
-2
@@ -59,7 +59,10 @@ jobs:
|
||||
TAG: ${{needs.prepare.outputs.TAG}}
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install ninja-build
|
||||
./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb
|
||||
# Skip dynamic library dependencies that might make it harder to
|
||||
# run the binaries on other distros (and that have little use within
|
||||
# llvm-mingw).
|
||||
LLVM_CMAKEFLAGS="-DLLVM_ENABLE_LIBXML2=OFF -DLLVM_ENABLE_TERMINFO=OFF" ./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb
|
||||
.github/workflows/store-version.sh install/llvm-mingw/versions.txt
|
||||
cd install
|
||||
DISTRO=ubuntu-$(grep DISTRIB_RELEASE /etc/lsb-release | cut -f 2 -d =)-$(uname -m)
|
||||
@@ -92,7 +95,10 @@ jobs:
|
||||
MINGW_W64_VERSION: ${{needs.prepare.outputs.MINGW_W64_VERSION}}
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install ninja-build
|
||||
./build-all.sh $(pwd)/install/llvm-mingw --disable-clang-tools-extra --disable-lldb --enable-asserts
|
||||
# Skip dynamic library dependencies that might make it harder to
|
||||
# run the binaries on other distros (and that have little use within
|
||||
# llvm-mingw).
|
||||
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
|
||||
.github/workflows/store-version.sh install/llvm-mingw/versions.txt
|
||||
cd install
|
||||
tar -Jcf ../llvm-mingw-linux.tar.xz llvm-mingw
|
||||
|
||||
Reference in new issue
Block a user