mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Remove duplicated flags // Issue #698
This commit is contained in:
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
VERSION = (2, 10, "4.dev1")
|
VERSION = (2, 10, "4.dev2")
|
||||||
__version__ = ".".join([str(s) for s in VERSION])
|
__version__ = ".".join([str(s) for s in VERSION])
|
||||||
|
|
||||||
__title__ = "platformio"
|
__title__ = "platformio"
|
||||||
|
@ -159,9 +159,9 @@ def ProcessUnFlags(env, flags):
|
|||||||
|
|
||||||
for key in parsed_flags.keys():
|
for key in parsed_flags.keys():
|
||||||
cur_flags = set(env.get(key, []))
|
cur_flags = set(env.get(key, []))
|
||||||
common = cur_flags & all_flags
|
for item in (cur_flags & all_flags):
|
||||||
for item in common:
|
while item in env[key]:
|
||||||
env[key].remove(item)
|
env[key].remove(item)
|
||||||
|
|
||||||
|
|
||||||
def IsFileWithExt(env, file_, ext): # pylint: disable=W0613
|
def IsFileWithExt(env, file_, ext): # pylint: disable=W0613
|
||||||
|
Reference in New Issue
Block a user