From a53388d38053f176b35788c5eb16a3b12fc5702b Mon Sep 17 00:00:00 2001 From: christopher alonso Date: Wed, 16 Aug 2023 13:26:50 -0400 Subject: [PATCH] fixed issue that occurs when sources returns a string --- pylib/gyp/generator/make.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pylib/gyp/generator/make.py b/pylib/gyp/generator/make.py index b4be3d79..69f35d6c 100644 --- a/pylib/gyp/generator/make.py +++ b/pylib/gyp/generator/make.py @@ -907,7 +907,8 @@ def Write( self.WriteMacInfoPlist(mac_bundle_deps) # Sources. - all_sources = spec.get("sources", []) + extra_sources + sources = spec.get("sources",[]) + all_sources = [sources] + extra_sources if isinstance(sources,str) else extra_sources + sources if all_sources: self.WriteSources( configs,