Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use x.py instead: https://rustc-dev-guide.rust-lang.org/building/how-to-build-and-run.html
5 changes: 4 additions & 1 deletion src/bootstrap/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,10 @@ def default_build_triple(verbose):
# install, use their preference. This fixes most issues with Windows builds
# being detected as GNU instead of MSVC.
try:
version = subprocess.check_output(["rustc", "--version", "--verbose"])
# https://stackoverflow.com/questions/48333999
fs_root = os.path.abspath('.').split(os.path.sep)[0]+os.path.sep
version = subprocess.check_output(["rustc", "--version", "--verbose"],
cwd=fs_root)
host = next(x for x in version.split('\n') if x.startswith("host: "))
triple = host.split("host: ")[1]
if verbose:
Expand Down