Commit f0619f3e authored by Vihang Mehta's avatar Vihang Mehta
Browse files

Collect lsif data for cpp files

Summary:
TSIA
Depends on D6872

Test Plan: Run it locally

Reviewers: zasgar, #engineering

Reviewed By: zasgar, #engineering

Differential Revision: https://phab.corp.pixielabs.ai/D6875

GitOrigin-RevId: 8600371e98168210f51e557108a92d0774f93767
parent 6dd37a6c
No related merge requests found
Showing with 19 additions and 0 deletions
+19 -0
......@@ -69,4 +69,23 @@ lsif-tsc --out "${LSIF_TS_OUT}" -p src/ui
-ignore-upload-failure \
-no-progress
LSIF_CPP_OUT="cpp.dump.lsif"
./scripts/gen_compilation_database.py \
--run_bazel_build \
--include_genfiles \
"$(bazel query 'kind("cc_(binary|test) rule",//... -//third_party/... -//demos/... -//experimental/...) except attr("tags", "manual", //...)')"
lsif-clang \
--extra-arg="-resource-dir=$(clang -print-resource-dir)" \
--out="${LSIF_CPP_OUT}" \
compile_commands.json
/opt/pixielabs/bin/src lsif upload \
-repo=github.com/pixie-labs/pixielabs \
-file="${LSIF_CPP_OUT}" \
-commit="${GIT_COMMIT}" \
-ignore-upload-failure \
-no-progress
popd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment