Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tools/vscode_compdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
# This is a modification of evnoy/tools/vscode/refresh_compdb.sh which hits
# the correct envoy-mobile Bazel targets.

# Use bazelisk if present, if not use bazel.
bazel_or_isk=bazelisk
command -v bazelisk &> /dev/null || bazel_or_isk=bazel

# Setting TEST_TMPDIR here so the compdb headers won't be overwritten by another bazel run
CC=clang TEST_TMPDIR=${BUILD_DIR:-/tmp}/envoy-mobile-compdb envoy/tools/gen_compilation_database.py --vscode //library/cc/... //library/common/... //test/cc/... //test/common/...
CC=clang TEST_TMPDIR=${BUILD_DIR:-/tmp}/envoy-mobile-compdb envoy/tools/gen_compilation_database.py --vscode --bazel=$bazel_or_isk //library/cc/... //library/common/... //test/cc/... //test/common/...

# Kill clangd to reload the compilation database
pkill clangd || :