Closed
Description
Currently rustc has to pass the actual value of the --target
argument to cc::windows_registry::find_tool
, making it one of the only places in rustc where the name of the target matters rather than the contents of the target. This also for example means that if you take the target spec of x86_64-pc-windows-msvc and put it in a file called aarch64-foo.json, rustc will incorrectly try to find a linker for aarch64. Or more realistically if you name it foo.json, rustc will not know which target to find a linker for even though the target spec itself contains the architecture to compile for.
Metadata
Metadata
Assignees
Labels
No labels