Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upmk: Fix MSVC bootstrapping itself #25848
Conversation
rust-highfive
assigned
pcwalton
May 28, 2015
This comment has been minimized.
This comment has been minimized.
|
r? @pcwalton (rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
|
r? @brson |
rust-highfive
assigned
brson
and unassigned
pcwalton
May 28, 2015
This comment has been minimized.
This comment has been minimized.
|
I have confirmed in dev that this is able to bootstrap itself! |
This comment has been minimized.
This comment has been minimized.
|
Confirmed on my system as well. |
This comment has been minimized.
This comment has been minimized.
|
@bors r+ |
This comment has been minimized.
This comment has been minimized.
|
|
bors
added a commit
that referenced
this pull request
Jun 2, 2015
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bors
merged commit b8c5921
into
rust-lang:master
Jun 2, 2015
This comment has been minimized.
This comment has been minimized.
|
I am wondering if the right solution for this problem wouldn't be replacing |
alexcrichton
deleted the
alexcrichton:fix-msvc
branch
Jun 3, 2015
This comment has been minimized.
This comment has been minimized.
|
That was actually my original thought as well, but after some discussion with @brson we concluded that it would probably make the most sense to not assume that the host can run the target binaries (because it's not true in most situations). I think in the long term we want the tools we provide (in |
This comment has been minimized.
This comment has been minimized.
Shouldn't they live in |
This comment has been minimized.
This comment has been minimized.
|
That has the unfortunate side effect of being installed-by-default for the entire system, which isn't perhaps always desired. For example I would be somewhat uncomfortable distributing We could perhaps but |
alexcrichton commentedMay 28, 2015
Now that MSVC support has landed in the most recent nightlies we can now have
MSVC bootstrap itself without going through a GNU compiler first. Unfortunately,
however, the bootstrap currently fails due to the compiler not being able to
find the llvm-ar.exe tool during the stage0 libcore compile. The compiler cannot
find this tool because it's looking inside a directory that does not exist:
The
gnuon this triple is because the bootstrap compiler's host architectureis GNU. The build system, however, only arranges for the llvm-ar.exe tool to be
available in this location:
To resolve this discrepancy, the build system has been modified to understand
triples that are bootstrapped from another triple, and in this case copy the
native tools to the right location.