From 5fbad1089cd9b10f24699913e7dc77ee2e75696a Mon Sep 17 00:00:00 2001 From: Geoff Romer Date: Wed, 24 Mar 2021 12:14:34 -0700 Subject: [PATCH] Add bazel query flag to work around bug (#414) Add Bazel query flag to work around https://github.com/bazelbuild/bazel/issues/8900 --- scripts/create_compdb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/create_compdb.py b/scripts/create_compdb.py index 1d47e2989af0..627f28fc722c 100755 --- a/scripts/create_compdb.py +++ b/scripts/create_compdb.py @@ -71,6 +71,8 @@ source_files_query = subprocess.run( "query", "--keep_going", "--output=location", + # Workaround for https://github.com/bazelbuild/bazel/issues/8900 + "--incompatible_display_source_file_location", 'filter(".*\\.(h|cpp|cc|c|cxx)$", kind("source file", deps(//...)))', ], check=True,