Skip to content

Process overrides in custom tools logic#88

Merged
Vollbrecht merged 3 commits intoesp-rs:masterfrom
tomstokes:master
Jun 15, 2024
Merged

Process overrides in custom tools logic#88
Vollbrecht merged 3 commits intoesp-rs:masterfrom
tomstokes:master

Conversation

@tomstokes
Copy link
Contributor

The custom tools parsing logic introduced in #85 does not process the overrides in tools.json. This omission breaks compilation on macOS and likely several other platforms.

This commit adds override parsing logic to properly handle overrides from tools.json

The custom tools parsing logic introduced in esp-rs#85 does not process the overrides in tools.json. This omission breaks compilation on macOS and likely several other platforms.

This commit adds override parsing logic to properly handle overrides from tools.json

Signed-off-by: Tom Stokes <tomstokes@radixengineering.com>
The custom tools parsing logic introduced in esp-rs#85 has incorrect ARCH values. The list of possible ARCH values can be found in the Rust documentation: https://doc.rust-lang.org/std/env/consts/constant.ARCH.html

Unfortunately, the Rust standard library doesn't distinguish between armel and armhf for 32-bit ARM, so this defaults to armel for 32-bit ARM.

The previous code would not properly match any ARM platforms (armv7 and armv8 are not possible ARCH values) and was missing 32-bit Linux.

Signed-off-by: Tom Stokes <tomstokes@radixengineering.com>
The newest version of clippy catches a clippy::manual-unwrap-or-default issue, causing CI builds to fail.

This implements the recommended fix and therefore should fix the CI builds.

Signed-off-by: Tom Stokes <tomstokes@radixengineering.com>
@Vollbrecht
Copy link
Collaborator

Thanks for the PR! LGTM

Could you tell me if you tested it on aarch64 or x86 Mac?

Regarding the ARCH arm matching, i couldn't find a rust target that doesn't use "arm" so thanks for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants