support rust installed without rustup
This commit is contained in:
parent
b961703fe4
commit
27e83d6b0e
|
@ -45,7 +45,10 @@ def find_host_triplet():
|
|||
return host.group(1)
|
||||
|
||||
def find_rust_lld():
|
||||
try:
|
||||
which = subprocess.run(["rustup", "which", "rustc"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
except FileNotFoundError:
|
||||
return "lld"
|
||||
which.check_returncode()
|
||||
|
||||
rustc_path = which.stdout.decode("utf8").strip()
|
||||
|
|
Loading…
Reference in a new issue