forked from platformio/platformio-core
Pass all PIO variables to PlatformManager
This commit is contained in:
1 parent
aac627abf4
commit
25c979a8ee
2 files changed
+4
-4
No files matched your search
@@ -30,10 +30,9 @@ def initPioPlatform(name):
|
||||
|
||||
def PioPlatform(env):
|
||||
variables = {}
|
||||
for key in ("board", "pioframework"):
|
||||
if key.upper() not in env:
|
||||
continue
|
||||
variables[key] = env[key.upper()]
|
||||
for name in env['PIOVARIABLES']:
|
||||
if name in env:
|
||||
variables[name.lower()] = env[name]
|
||||
p = initPioPlatform(env['PLATFORM_MANIFEST'])
|
||||
p.configure_default_packages(variables, COMMAND_LINE_TARGETS)
|
||||
return p
|
||||
|
||||
Reference in new issue
Block a user