Generate `compilation database "compile_commands.json" // Resolve #2990

This commit is contained in:
Ivan Kravets
2020-02-06 17:19:48 +02:00
parent 7716fe1d1c
commit 00a9a2c04d
6 changed files with 221 additions and 4 deletions
+1 -1
View File
@@ -366,7 +366,7 @@ class LibBuilderBase(object):
if not fs.path_endswith_ext(_h_path, piotool.SRC_HEADER_EXT):
continue
_f_part = _h_path[: _h_path.rindex(".")]
for ext in piotool.SRC_C_EXT:
for ext in piotool.SRC_C_EXT + piotool.SRC_CXX_EXT:
if not isfile("%s.%s" % (_f_part, ext)):
continue
_c_path = self.env.File("%s.%s" % (_f_part, ext))