Skip to content

support "vxworks" and "nto" OSes on get_base_archiver_variant #1456

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

Merged
merged 6 commits into from
May 15, 2025

Conversation

onur-ozkan
Copy link
Member

Extends the archiver detection logic to support the "vxworks" and "nto" operating systems. This change will allow us to remove this custom bootstrap logic and rely entirely on the cc crate as it already supports all other AR finding conditions handled by bootstrap. You can try this patch to test this.

The original PRs that introduced these conditions in the bootstrap are:

Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Copy link
Collaborator

@madsmtm madsmtm left a comment

Choose a reason for hiding this comment

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

Looks fine overall.

@onur-ozkan
Copy link
Member Author

Thanks for the review, I will address your notes once I get some free time (probably around the weekend).

Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Signed-off-by: onur-ozkan <work@onurozkan.dev>
@onur-ozkan onur-ozkan force-pushed the extend-ar-finding branch 11 times, most recently from b1e4bd0 to 59c3044 Compare April 16, 2025 07:15
@onur-ozkan
Copy link
Member Author

Any updates on this? It's blocking one of the FIXMEs on rustc bootstrap.

Copy link
Collaborator

@NobodyXu NobodyXu left a comment

Choose a reason for hiding this comment

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

cc @madsmtm Lgtm, wdyt

Copy link
Collaborator

@madsmtm madsmtm left a comment

Choose a reason for hiding this comment

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

Only comment is about what is effectively dead code, looks fine otherwise

Signed-off-by: onur-ozkan <work@onurozkan.dev>
@onur-ozkan onur-ozkan force-pushed the extend-ar-finding branch from 59c3044 to e3b04dc Compare May 14, 2025 06:54
@onur-ozkan
Copy link
Member Author

Should be ready now.

Any idea when this can be released with a new cc-rs version?

Copy link
Collaborator

@NobodyXu NobodyXu left a comment

Choose a reason for hiding this comment

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

Thanks, next release is scheduled for this Friday 😄

@onur-ozkan
Copy link
Member Author

Thanks, next release is scheduled for this Friday 😄

It would be super nice if we can land this before the release happens. 😄

@NobodyXu NobodyXu merged commit 8ee6782 into rust-lang:main May 15, 2025
73 checks passed
@NobodyXu
Copy link
Collaborator

Sorry I forgot to click on the merge button yesterday, somehow my brain thinks I've already done that 😅

@onur-ozkan onur-ozkan deleted the extend-ar-finding branch May 15, 2025 10:02
@github-actions github-actions bot mentioned this pull request May 16, 2025
fmease added a commit to fmease/rust that referenced this pull request May 18, 2025
…larsan68

replace `cc_detect::cc2ar` with `cc::try_get_archiver`

~~Awaiting new release of [cc](https://crates.io/crates/cc) version with rust-lang/cc-rs#1456 to bump the version.~~

~~Blocked by rust-lang/cc-rs#1456

Kind a self-explanatory.
bors added a commit to rust-lang-ci/rust that referenced this pull request May 18, 2025
replace `cc_detect::cc2ar` with `cc::try_get_archiver`

~~Awaiting new release of [cc](https://crates.io/crates/cc) version with rust-lang/cc-rs#1456 to bump the version.~~

~~Blocked by rust-lang/cc-rs#1456

Kind a self-explanatory.

try-job: arm-android
bors added a commit to rust-lang-ci/rust that referenced this pull request May 19, 2025
replace `cc_detect::cc2ar` with `cc::try_get_archiver`

~~Awaiting new release of [cc](https://crates.io/crates/cc) version with rust-lang/cc-rs#1456 to bump the version.~~

~~Blocked by rust-lang/cc-rs#1456

Kind a self-explanatory.

try-job: arm-android
bors added a commit to rust-lang-ci/rust that referenced this pull request May 19, 2025
replace `cc_detect::cc2ar` with `cc::try_get_archiver`

~~Awaiting new release of [cc](https://crates.io/crates/cc) version with rust-lang/cc-rs#1456 to bump the version.~~

~~Blocked by rust-lang/cc-rs#1456

Kind a self-explanatory.

try-job: arm-android
bors added a commit to rust-lang-ci/rust that referenced this pull request May 19, 2025
replace `cc_detect::cc2ar` with `cc::try_get_archiver`

~~Awaiting new release of [cc](https://crates.io/crates/cc) version with rust-lang/cc-rs#1456 to bump the version.~~

~~Blocked by rust-lang/cc-rs#1456

Kind a self-explanatory.

try-job: arm-android
bors added a commit to rust-lang-ci/rust that referenced this pull request May 19, 2025
…rsan68

replace `cc_detect::cc2ar` with `cc::try_get_archiver`

~~Awaiting new release of [cc](https://crates.io/crates/cc) version with rust-lang/cc-rs#1456 to bump the version.~~

~~Blocked by rust-lang/cc-rs#1456

Kind a self-explanatory.

try-job: arm-android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants