Skip to content

use gcc-ar from installed tools path #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
umbynos opened this issue Jan 26, 2022 · 2 comments
Open

use gcc-ar from installed tools path #15

umbynos opened this issue Jan 26, 2022 · 2 comments
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@umbynos
Copy link
Contributor

umbynos commented Jan 26, 2022

The tool should already be available, since we use GCC during the compile phase. It should be possible to parse the output from the cli's first compile and grab the path to gcc-ar rcs tool. This way we could avoid the install of another tool. We could use the already implemented approach as a failsafe

@umbynos umbynos added topic: code Related to content of the project itself type: enhancement Proposed improvement labels Jan 26, 2022
@umbynos umbynos self-assigned this Jan 26, 2022
@per1234
Copy link
Contributor

per1234 commented Jan 26, 2022

I think this would make the tool more friendly to Windows users, though I don't know whether that is really a consideration for the target user.

I actually did a quick attempt to make it to use avr-gcc-ar.exe from the Arduino AVR Boards installation while I was trying the tool out, before deciding to stop messing around and just follow the exact instructions from the readme on my Linux machine.

It should be possible to parse the output from the cli's first compile and grab the path

#8 should make it even easier and more reliable to get the path, since this is already defined in the platform properties.

@umbynos
Copy link
Contributor Author

umbynos commented Jan 26, 2022

For sure, it would be much easier and less hacky, but using the arduino-cli as a library is not that easy since we need the compile command, which should be one of the more complex one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

2 participants