Skip to content

Conversation

smalis-msft
Copy link
Contributor

This is currently Rust's default behavior, but it will be changing at some point in the future (rust-lang/rust#144513). Just specifying it explicitly now doesn't hurt, and avoids the warning noise whenever it shows up.

@Copilot Copilot AI review requested due to automatic review settings August 20, 2025 20:55
@smalis-msft smalis-msft requested a review from a team as a code owner August 20, 2025 20:55
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR explicitly configures the Rust compiler to use static CRT (C Runtime) linking for musl targets by adding the -Ctarget-feature=+crt-static flag. This change proactively addresses a future Rust compiler default behavior change while maintaining current functionality and avoiding warning noise.

Key changes:

  • Adds explicit static CRT configuration for musl targets in Cargo configuration

@smalis-msft smalis-msft merged commit e8acaef into microsoft:main Aug 20, 2025
29 checks passed
@smalis-msft smalis-msft deleted the musl-static branch August 20, 2025 22:00
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