From 6328206e78bde3058f849f1c2875d3b76207f5c2 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 17 Feb 2020 13:05:01 +0200 Subject: [PATCH] Fixed an issue when generating of compilation database "compile_commands.json" does not work with Python 2.7 // Resolve #3378 --- HISTORY.rst | 1 + docs | 2 +- platformio/builder/tools/compilation_db.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 342ec2bb..2e4925da 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -14,6 +14,7 @@ PlatformIO Core 4 * Froze "marshmallow" dependency to 2.X for Python 2 (`issue #3380 `_) * Fixed "TypeError: unsupported operand type(s)" when system environment variable is used by project configuration parser (`issue #3377 `_) * Fixed an issue when Library Dependency Finder (LDF) ignores custom "libLDFMode" and "libCompatMode" options in `library.json `__ +* Fixed an issue when generating of compilation database "compile_commands.json" does not work with Python 2.7 (`issue #3378 `_) 4.2.0 (2020-02-12) diff --git a/docs b/docs index 3a399f12..ecc392b0 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 3a399f127b6e16c75e47ff06d90f2aace7a5f94b +Subproject commit ecc392b0bd21a83043118c9d8d05147b85e453a1 diff --git a/platformio/builder/tools/compilation_db.py b/platformio/builder/tools/compilation_db.py index c7a6b945..af54f5eb 100644 --- a/platformio/builder/tools/compilation_db.py +++ b/platformio/builder/tools/compilation_db.py @@ -49,7 +49,7 @@ class __CompilationDbNode(SCons.Node.Python.Value): self.Decider(changed_since_last_build_node) -def changed_since_last_build_node(child, target, prev_ni, node): +def changed_since_last_build_node(*args, **kwargs): """ Dummy decider to force always building""" return True