Compare commits

...

4 Commits

Author SHA1 Message Date
Ivan Kravets
fe140b0566 Merge branch 'release/v6.1.15' 2024-04-25 11:37:53 +03:00
Ivan Kravets
956f21b639 Bump version to 6.1.15 2024-04-25 11:37:28 +03:00
Ivan Kravets
cdac7d497c Resolved an issue related to the inaccurate detection of the Clang compiler // Resolve #4897 2024-04-24 23:08:00 +03:00
Ivan Kravets
591b377e4a Sync docs 2024-03-29 21:33:54 +02:00
6 changed files with 15 additions and 8 deletions

View File

@@ -18,10 +18,11 @@ Unlock the true potential of embedded software development with
PlatformIO's collaborative ecosystem, embracing declarative principles,
test-driven methodologies, and modern toolchains for unrivaled success.
6.1.15 (2024-??-??)
6.1.15 (2024-04-25)
~~~~~~~~~~~~~~~~~~~
* 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>`_)
* Resolved an issue related to the inaccurate detection of the Clang compiler (`pull #4897 <https://github.com/platformio/platformio-core/pull/4897>`_)
6.1.14 (2024-03-21)
~~~~~~~~~~~~~~~~~~~

2
docs

Submodule docs updated: 670721e923...0125f8d5be

View File

@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
VERSION = (6, 1, "15a1")
VERSION = (6, 1, 15)
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio"

View File

@@ -20,19 +20,23 @@ from platformio.proc import exec_command
@util.memoized()
def GetCompilerType(env):
if env.subst("$CC").endswith("-gcc"):
def GetCompilerType(env): # pylint: disable=too-many-return-statements
CC = env.subst("$CC")
if CC.endswith("-gcc"):
return "gcc"
if os.path.basename(CC) == "clang":
return "clang"
try:
sysenv = os.environ.copy()
sysenv["PATH"] = str(env["ENV"]["PATH"])
result = exec_command([env.subst("$CC"), "-v"], env=sysenv)
result = exec_command([CC, "-v"], env=sysenv)
except OSError:
return None
if result["returncode"] != 0:
return None
output = "".join([result["out"], result["err"]]).lower()
if "clang" in output and "LLVM" in output:
if "clang version" in output:
return "clang"
if "gcc" in output:
return "gcc"

View File

@@ -357,6 +357,8 @@ Packages
- Description"""
)
for name, options in dict(sorted(packages.items())).items():
if name == "toolchain-gccarmnoneeab": # aceinna typo fix
name = name + "i"
package = REGCLIENT.get_package(
"tool", options.get("owner", "platformio"), name
)