[TOOLS] Update clangd to v21

This commit is contained in:
Carmelo Messina
2025-05-26 09:49:32 +02:00
parent 5ceadca8ab
commit 47c6ace88d
5 changed files with 13 additions and 9 deletions
+1 -1
View File
@@ -434,5 +434,5 @@ jobs:
gn gen --args="import(\"/home/lg/working_dir/cromite/build/cromite.gn_args\") $(cat ../../build_args.gni) skip_clangd_unsupported_options = true" out/clangd && \
$WORKSPACE/ninja/ninja -C $WORKSPACE/chromium/src/out/clangd -a chrome_public_apk \
-t compdb cc cxx objc objcxx >$WORKSPACE/chromium/src/out/clangd/compile_commands.json && \
/home/lg/working_dir/clangd_snapshot_20211205/bin/clangd-indexer --executor=all-TUs out/clangd/compile_commands.json >out/arm64/cromite.idx && \
/home/lg/working_dir/clangd_snapshot_20250518/bin/clangd-indexer --executor=all-TUs out/clangd/compile_commands.json >out/arm64/cromite.idx && \
rm -rf out/clangd
+3 -3
View File
@@ -74,9 +74,9 @@ CXX=clang++ ./configure.py --bootstrap
echo -e ${RED} -------- download clang indexer ${NC}
cd $WORKSPACE/
wget https://github.com/clangd/clangd/releases/download/17.0.3/clangd_indexing_tools-linux-17.0.3.zip
unzip clangd_indexing_tools-linux-17.0.3.zip
rm clangd_indexing_tools-linux-17.0.3.zip
wget https://github.com/clangd/clangd/releases/download/snapshot_20250518/clangd_indexing_tools-linux-snapshot_20250518.zip
unzip clangd_indexing_tools-linux-snapshot_20250518.zip
rm clangd_indexing_tools-linux-snapshot_20250518.zip
echo -e ${RED} -------- download rc ${NC}
cd $WORKSPACE/chromium/src
+3 -3
View File
@@ -8,9 +8,9 @@ RUN apt-get install -y --no-install-recommends python3-pip && \
RUN rm -rf /var/www/html/*
#WORKDIR "/"
RUN wget https://github.com/clangd/clangd/releases/download/17.0.3/clangd_indexing_tools-linux-17.0.3.zip && \
unzip clangd_indexing_tools-linux-17.0.3.zip && \
rm clangd_indexing_tools-linux-17.0.3.zip
RUN wget https://github.com/clangd/clangd/releases/download/snapshot_20250518/clangd_indexing_tools-linux-snapshot_20250518.zip && \
unzip clangd_indexing_tools-linux-snapshot_20250518.zip && \
rm clangd_indexing_tools-linux-snapshot_20250518.zip
ADD cromite.idx .
ADD entry_point.sh .
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/bash
until ./clangd_17.0.3/bin/clangd-index-server \
until ./clangd_snapshot_20250518/bin/clangd-index-server \
/cromite.idx /home/lg/working_dir/chromium/src \
--server-address="0.0.0.0:50051" \
--limit-results=99999999999
+5 -1
View File
@@ -5,7 +5,9 @@ if [[ -z "${INDEX_VERSION}" ]]; then
exit 1
fi
FLD=/storage/images/$INDEX_VERSION/android/true/arm64
FLD=/storage/images/$INDEX_VERSION/android/true/x64
test -d $FLD || FLD=/casefold/storage/images/$INDEX_VERSION/android/true/x64
test -d $FLD || echo "wrong directory" && exit 1
cp $FLD/cromite.idx .
cp $FLD/RELEASE .
@@ -14,3 +16,5 @@ DOCKER_BUILDKIT=1 docker build -t uazo/bromite-remote-index:$INDEX_VERSION \
--progress plain \
--no-cache \
.
echo RELEASE:$(cat RELEASE): TAG:$INDEX_VERSION