Builder: append target suffix to the filename instead of replacing

This commit is contained in:
Ivan Kravets
2018-02-20 01:15:52 +02:00
parent a3457dfca6
commit 7c0cd12f80

View File

@ -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