Skip to content

Commit ab8466d

Browse files
committed
compile-db: point includes also to potentially generated files.
1 parent e6cd9ef commit ab8466d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bant/tool/compilation-db.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,9 @@ static std::vector<std::string> CollectIncDirs(
256256
if (inc_path.starts_with(kExternalPrefix)) {
257257
result.emplace_back(absl::StrCat(
258258
"bazel-bin/external", inc_path.substr(kExternalPrefix.length())));
259+
} else {
260+
// Not external: then our own possible build path.
261+
result.emplace_back(absl::StrCat("bazel-bin/", inc_path));
259262
}
260263
}
261264

0 commit comments

Comments
 (0)