Skip to content

Conversation

@jkelleyrtp
Copy link
Member

@jkelleyrtp jkelleyrtp commented May 22, 2025

In my windows Administrator: ARM64 Native Tools Command Prompt for VS 2022 (2) command prompt, the various sysroots seem to be set fine when doing compiles/linking.

However, it seems that the default command prompt does not set these variables, and that rustc figures out the sysroot for windows manually and adds stuff like ntdll.dll to the path. This PR just steals the environment set by the rust compiler and replicates it for the linking commands, preserving the behavior of a typical rust compile.

@jkelleyrtp jkelleyrtp requested a review from a team as a code owner May 22, 2025 09:58
Copy link

@bushrat011899 bushrat011899 left a comment

Choose a reason for hiding this comment

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

This works much more reliably for me on Windows 10, thanks!

@jkelleyrtp jkelleyrtp merged commit d435f00 into main May 22, 2025
15 of 17 checks passed
@jkelleyrtp jkelleyrtp deleted the jk/replicate-env branch May 22, 2025 11:33
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