forked from platformio/platformio-core
Fix an issue when dynamic build flags were not handled correctly // Resolve #1799
This commit is contained in:
1 parent
13ff30788e
commit
00b173f13f
2 files changed
+10
-3
No files matched your search
@@ -142,9 +142,14 @@ def BuildProgram(env):
|
||||
|
||||
|
||||
def ParseFlagsExtended(env, flags):
|
||||
if isinstance(flags, list):
|
||||
flags = " ".join(flags)
|
||||
result = env.ParseFlags(str(flags))
|
||||
if not isinstance(flags, list):
|
||||
flags = [flags]
|
||||
result = {}
|
||||
for raw in flags:
|
||||
for key, value in env.ParseFlags(str(raw)).items():
|
||||
if key not in result:
|
||||
result[key] = []
|
||||
result[key].extend(value)
|
||||
|
||||
cppdefines = []
|
||||
for item in result['CPPDEFINES']:
|
||||
|
||||
Reference in new issue
Block a user