Skip to content

Only export LIBCLANG_PATH when export=true#38

Merged
SergioGasquez merged 2 commits intoesp-rs:mainfrom
chrysn-pull-requests:libclang-path-own-tunable
Feb 17, 2025
Merged

Only export LIBCLANG_PATH when export=true#38
SergioGasquez merged 2 commits intoesp-rs:mainfrom
chrysn-pull-requests:libclang-path-own-tunable

Conversation

@chrysn
Copy link
Contributor

@chrysn chrysn commented Feb 17, 2025

This is a solution to #35 that does not interfere with any existing deployments by creating a new option; it is an alternative to #36 and somehow builds on #37 (it doesn't strictly depend on #37, but any user of this will want #37 in).

This is primarily useful for hands-off environments where the paths are
not exported by default (otherwise, downstream actions would need to
hard-code this action's choice of export file), and conveniently allows
eliding the parameter during installation (because the variable is used
by espup).
chrysn added a commit to chrysn-pull-requests/ariel-os that referenced this pull request Feb 17, 2025
With [38] tentatively in (through a branched action), [491] can be
reverted; the latter had doing something like [38] in its list of
considered alternatives, but failed to foresee the need for sourcing all
that data back in for compiling C code on Xtensa.

[38]: esp-rs/xtensa-toolchain#38
[491]: ariel-os#491
chrysn added a commit to chrysn-pull-requests/ariel-os that referenced this pull request Feb 17, 2025
With [38] tentatively in (through a branched action), [491] can be
reverted; the latter had doing something like [38] in its list of
considered alternatives, but failed to foresee the need for sourcing all
that data back in for compiling C code on Xtensa.

[38]: esp-rs/xtensa-toolchain#38
[491]: ariel-os#491
@chrysn
Copy link
Contributor Author

chrysn commented Feb 17, 2025

I've now also tested this on the Ariel OS CI infrastructure, running its full build tests that cover different ESPs but also non-ESP MCUs. Moreover, this enables building mixed C and Rust programs (as tested in ariel-os/ariel-os#826; the failed tests there are just because there are merge commits in its history), something that we could not do in a mixed environment before.

@SergioGasquez SergioGasquez linked an issue Feb 17, 2025 that may be closed by this pull request
Copy link
Member

@SergioGasquez SergioGasquez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks

@SergioGasquez SergioGasquez merged commit bb0dff3 into esp-rs:main Feb 17, 2025
4 checks passed
@chrysn chrysn mentioned this pull request Feb 17, 2025
chrysn added a commit to chrysn-pull-requests/ariel-os that referenced this pull request Feb 17, 2025
With [38] tentatively in (through a branched action), [491] can be
reverted; the latter had doing something like [38] in its list of
considered alternatives, but failed to foresee the need for sourcing all
that data back in for compiling C code on Xtensa.

[38]: esp-rs/xtensa-toolchain#38
[491]: ariel-os#491
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.

LIBCLANG_PATH is set unconditionally

2 participants