mirror of
https://github.com/clangd/clangd.git
synced 2025-04-20 23:53:02 +00:00
Fix static linking of zlib.
Use of the standard FindZLIB and thus support for ZLIB_LIBRARIES was removed upstream in llvm/llvm-project@916be8fd6a
This commit is contained in:
parent
d740d020b6
commit
68f6aa750f
6
.github/workflows/autobuild.yaml
vendored
6
.github/workflows/autobuild.yaml
vendored
@ -72,7 +72,9 @@ jobs:
|
|||||||
"-DCMAKE_EXE_LINKER_FLAGS_RELEASE=-static-libgcc -Wl,--compress-debug-sections=zlib"
|
"-DCMAKE_EXE_LINKER_FLAGS_RELEASE=-static-libgcc -Wl,--compress-debug-sections=zlib"
|
||||||
"-DLLVM_STATIC_LINK_CXX_STDLIB=ON"
|
"-DLLVM_STATIC_LINK_CXX_STDLIB=ON"
|
||||||
"-DLLVM_ENABLE_ZLIB=FORCE_ON"
|
"-DLLVM_ENABLE_ZLIB=FORCE_ON"
|
||||||
"-DZLIB_LIBRARY=/usr/lib/x86_64-linux-gnu/libz.a"
|
post_cmake: |
|
||||||
|
# Link zlib statically. LLVM 10 has no option for this!
|
||||||
|
sed -i 's/ -lz / -l:libz.a /' "$CLANGD_DIR/build.ninja"
|
||||||
steps:
|
steps:
|
||||||
- name: Clone scripts
|
- name: Clone scripts
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -119,6 +121,8 @@ jobs:
|
|||||||
"-DCLANG_PLUGIN_SUPPORT=OFF"
|
"-DCLANG_PLUGIN_SUPPORT=OFF"
|
||||||
"-DLLVM_ENABLE_PLUGINS=OFF"
|
"-DLLVM_ENABLE_PLUGINS=OFF"
|
||||||
${{ matrix.config.cmake }}
|
${{ matrix.config.cmake }}
|
||||||
|
|
||||||
|
${{ matrix.config.post_cmake }}
|
||||||
- name: Ninja
|
- name: Ninja
|
||||||
run: ninja -C ${{ env.CLANGD_DIR }} clangd
|
run: ninja -C ${{ env.CLANGD_DIR }} clangd
|
||||||
- name: Archive
|
- name: Archive
|
||||||
|
Loading…
Reference in New Issue
Block a user