Description
I often write patches for std::sys::windows
while not using windows. It would be nice if ./x.py check --target x86_64-pc-windows-msvc library/std
worked, but instead it does not -- I get an error like https://gist.github.com/thomcc/7c889b3a1306922f7eda28f45f1d304e (this is from a build where aarch64-apple-darwin
is the host).
As a result, to check changes to std::sys::windows while not on windows, I'm forced to a full stage1 build, and then in some other workspace run cargo +stage1 check -Zbuild-std --target x86_64-pc-windows-msvc
(where +stage1
is a linked toolchain). This works, but is tedious/time-consuming.
CC @jyn514 who suggested I file this issue, and suggested that it "looks like we're handling the linker arguments wrong when cross compiling".