From 7c0cd12f808a9ace4770bf504acddf07518a7507 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Tue, 20 Feb 2018 01:15:52 +0200 Subject: [PATCH] Builder: append target suffix to the filename instead of replacing --- platformio/builder/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/builder/main.py b/platformio/builder/main.py index ea02734d..160c9038 100644 --- a/platformio/builder/main.py +++ b/platformio/builder/main.py @@ -34,7 +34,7 @@ def scons_patched_match_splitext(path, suffixes=None): Patch SCons version, append $OBJSUFFIX to the end of each target """ result = Util.splitext(path) - if result[1] in (suffixes or []): + if suffixes and result[1] and result[1] in suffixes: return (path, result[1]) return result