mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Builder: append target suffix to the filename instead of replacing
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user