Skip to content

Commit fe140b0

Browse files
committed
Merge branch 'release/v6.1.15'
2 parents 9d1593d + 956f21b commit fe140b0

File tree

8 files changed

+32
-12
lines changed

8 files changed

+32
-12
lines changed

HISTORY.rst

+6
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ Unlock the true potential of embedded software development with
1818
PlatformIO's collaborative ecosystem, embracing declarative principles,
1919
test-driven methodologies, and modern toolchains for unrivaled success.
2020

21+
6.1.15 (2024-04-25)
22+
~~~~~~~~~~~~~~~~~~~
23+
24+
* Resolved an issue where the |LDF| couldn't locate a library dependency declared via version control system repository (`issue #4885 <https://github.com/platformio/platformio-core/issues/4885>`_)
25+
* Resolved an issue related to the inaccurate detection of the Clang compiler (`pull #4897 <https://github.com/platformio/platformio-core/pull/4897>`_)
26+
2127
6.1.14 (2024-03-21)
2228
~~~~~~~~~~~~~~~~~~~
2329

platformio/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
VERSION = (6, 1, 14)
15+
VERSION = (6, 1, 15)
1616
__version__ = ".".join([str(s) for s in VERSION])
1717

1818
__title__ = "platformio"

platformio/assets/system/99-platformio-udev.rules

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,4 @@ ATTRS{product}=="*CMSIS-DAP*", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1", ENV{ID
177177
ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2107", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1", ENV{ID_MM_PORT_IGNORE}="1"
178178

179179
# Espressif USB JTAG/serial debug unit
180-
ATTRS{idVendor}=="303a", ATTR{idProduct}=="1001", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1", ENV{ID_MM_PORT_IGNORE}="1"
180+
ATTRS{idVendor}=="303a", ATTRS{idProduct}=="1001", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1", ENV{ID_MM_PORT_IGNORE}="1"

platformio/builder/tools/piolib.py

+12-4
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
ManifestParserError,
4040
ManifestParserFactory,
4141
)
42-
from platformio.package.meta import PackageCompatibility, PackageItem
42+
from platformio.package.meta import PackageCompatibility, PackageItem, PackageSpec
4343
from platformio.project.options import ProjectOptions
4444

4545

@@ -332,9 +332,17 @@ def is_dependency_compatible(self, dependency):
332332
qualifiers = {"name": pkg.metadata.name, "version": pkg.metadata.version}
333333
if pkg.metadata.spec and pkg.metadata.spec.owner:
334334
qualifiers["owner"] = pkg.metadata.spec.owner
335-
return PackageCompatibility.from_dependency(
336-
{k: v for k, v in dependency.items() if k in ("owner", "name", "version")}
337-
).is_compatible(PackageCompatibility(**qualifiers))
335+
dep_qualifiers = {
336+
k: v for k, v in dependency.items() if k in ("owner", "name", "version")
337+
}
338+
if (
339+
"version" in dep_qualifiers
340+
and not PackageSpec(dep_qualifiers["version"]).requirements
341+
):
342+
del dep_qualifiers["version"]
343+
return PackageCompatibility.from_dependency(dep_qualifiers).is_compatible(
344+
PackageCompatibility(**qualifiers)
345+
)
338346

339347
def get_search_files(self):
340348
return [

platformio/builder/tools/piomisc.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,23 @@
2020

2121

2222
@util.memoized()
23-
def GetCompilerType(env):
24-
if env.subst("$CC").endswith("-gcc"):
23+
def GetCompilerType(env): # pylint: disable=too-many-return-statements
24+
CC = env.subst("$CC")
25+
if CC.endswith("-gcc"):
2526
return "gcc"
27+
if os.path.basename(CC) == "clang":
28+
return "clang"
2629
try:
30+
2731
sysenv = os.environ.copy()
2832
sysenv["PATH"] = str(env["ENV"]["PATH"])
29-
result = exec_command([env.subst("$CC"), "-v"], env=sysenv)
33+
result = exec_command([CC, "-v"], env=sysenv)
3034
except OSError:
3135
return None
3236
if result["returncode"] != 0:
3337
return None
3438
output = "".join([result["out"], result["err"]]).lower()
35-
if "clang" in output and "LLVM" in output:
39+
if "clang version" in output:
3640
return "clang"
3741
if "gcc" in output:
3842
return "gcc"

scripts/docspregen.py

+2
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@ def generate_packages(platform, packages, is_embedded):
357357
- Description"""
358358
)
359359
for name, options in dict(sorted(packages.items())).items():
360+
if name == "toolchain-gccarmnoneeab": # aceinna typo fix
361+
name = name + "i"
360362
package = REGCLIENT.get_package(
361363
"tool", options.get("owner", "platformio"), name
362364
)

0 commit comments

Comments
 (0)