mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
support rust installed without rustup
This commit is contained in:
parent
b961703fe4
commit
27e83d6b0e
1 changed files with 4 additions and 1 deletions
|
|
@ -45,7 +45,10 @@ def find_host_triplet():
|
||||||
return host.group(1)
|
return host.group(1)
|
||||||
|
|
||||||
def find_rust_lld():
|
def find_rust_lld():
|
||||||
which = subprocess.run(["rustup", "which", "rustc"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
try:
|
||||||
|
which = subprocess.run(["rustup", "which", "rustc"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
|
except FileNotFoundError:
|
||||||
|
return "lld"
|
||||||
which.check_returncode()
|
which.check_returncode()
|
||||||
|
|
||||||
rustc_path = which.stdout.decode("utf8").strip()
|
rustc_path = which.stdout.decode("utf8").strip()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue