forked from platformio/platformio-core
Generate `compilation database "compile_commands.json" // Resolve #2990
This commit is contained in:
1 parent
7716fe1d1c
commit
00a9a2c04d
6 files changed
+221
-4
No files matched your search
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user