Skip to content

Commit 4e6016e

Browse files
committed
Merge branch 'release/v5.2.1'
2 parents d0dcb22 + 1340e42 commit 4e6016e

File tree

3 files changed

+40
-1
lines changed

3 files changed

+40
-1
lines changed

builder/compat.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Copyright 2014-present PlatformIO <[email protected]>
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from SCons.Script import AlwaysBuild, Import
16+
17+
18+
Import("env")
19+
20+
21+
# Added in PIO Core 4.4.0
22+
if not hasattr(env, "AddPlatformTarget"):
23+
24+
def AddPlatformTarget(
25+
env,
26+
name,
27+
dependencies,
28+
actions,
29+
title=None,
30+
description=None,
31+
always_build=True,
32+
):
33+
target = env.Alias(name, dependencies, actions)
34+
if always_build:
35+
AlwaysBuild(target)
36+
return target
37+
38+
env.AddMethod(AddPlatformTarget)

builder/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
Builder, Default, DefaultEnvironment)
2222

2323
env = DefaultEnvironment()
24+
env.SConscript("compat.py", exports="env")
2425
platform = env.PioPlatform()
2526
board = env.BoardConfig()
2627

platform.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"type": "git",
1212
"url": "https://github.com/platformio/platform-nxplpc.git"
1313
},
14-
"version": "5.2.0",
14+
"version": "5.2.1",
1515
"packageRepositories": [
1616
"https://dl.bintray.com/platformio/dl-packages/manifest.json",
1717
"http://dl.platformio.org/packages/manifest.json"

0 commit comments

Comments
 (0)