mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
Fix #12359: make ensure_bootstrap check for host std if rustc exists.
This commit is contained in:
parent
e2262882ad
commit
38b6b24a5d
1 changed files with 3 additions and 4 deletions
|
@ -434,9 +434,8 @@ class CommandBase(object):
|
||||||
rustc_binary_exists = path.exists(rustc_path)
|
rustc_binary_exists = path.exists(rustc_path)
|
||||||
|
|
||||||
base_target_path = path.join(rust_root, "rustc", "lib", "rustlib")
|
base_target_path = path.join(rust_root, "rustc", "lib", "rustlib")
|
||||||
target_exists = True
|
|
||||||
if target is not None:
|
target_path = path.join(base_target_path, target or host_triple())
|
||||||
target_path = path.join(base_target_path, target)
|
|
||||||
target_exists = path.exists(target_path)
|
target_exists = path.exists(target_path)
|
||||||
|
|
||||||
if not (self.config['tools']['system-rust'] or (rustc_binary_exists and target_exists)):
|
if not (self.config['tools']['system-rust'] or (rustc_binary_exists and target_exists)):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue