Skip to content
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

Also respect readelf and objcopy cc-rs variants #465

Merged
merged 2 commits into from
Jun 16, 2024

Conversation

jschwe
Copy link
Member

@jschwe jschwe commented May 30, 2024

While compiling servo for OpenHarmony on a MacOS host, I noticed that readelf and objcopy apparently aren't chosen from the same directory as the clang c compiler, but needed to be in PATH for the configure script to pick them up. To allow users to set READELF and OBJCOPY explicitly, we should also read the relevant cc-rs environment variables.

An alternative would have been to inspect the configure scripts and find out why they don't look next to clang, but I'm not familiar enough with the configure script.

@jschwe jschwe changed the title Also respect readelf and objcopy cc-rs variants Draft: Also respect readelf and objcopy cc-rs variants May 30, 2024
@jschwe jschwe changed the title Draft: Also respect readelf and objcopy cc-rs variants Also respect readelf and objcopy cc-rs variants Jun 15, 2024
@jschwe
Copy link
Member Author

jschwe commented Jun 15, 2024

Just adding readelf and objcopy to the list of variables caused CI for macos to fail - this was somehow related to sccache. Disabling sccache and updating the sccache github action both fixed CI, so I'll just update the sccache action in this PR.

@jdm jdm enabled auto-merge June 15, 2024 14:29
While compiling servo for OpenHarmony on a MacOS host,
I noticed that readelf and objcopy apparently aren't chosen
from the same directory as the clang c compiler, but needed
to be in PATH for the configure script to pick them up.
To allow users to set READELF and OBJCOPY explicitly, we
should also read the relevant cc-rs environment variables.

An alternative would have been to inspect the configure scripts
and find out why they don't look next to clang, but I'm not
familiar enough with the configure script.
@sagudev
Copy link
Member

sagudev commented Jun 16, 2024

Rebased!

@jdm jdm added this pull request to the merge queue Jun 16, 2024
Merged via the queue into servo:main with commit 369f290 Jun 16, 2024
20 checks passed
@sagudev sagudev mentioned this pull request Jun 16, 2024
3 tasks
@jschwe jschwe deleted the jschwender/vars branch June 16, 2024 06:05
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.

3 participants