build/rust/run_build_script.py
def host_triple(rustc_path):
  """ Works out the host rustc target. """
  args = [rustc_path, "-vV"]
  known_vars = dict()
  proc = subprocess.Popen(args, stdout=subprocess.PIPE)
  for line in io.TextIOWrapper(proc.stdout, encoding="utf-8"):
    m = RUSTC_VERSION_LINE.match(line.rstrip())
    if m:
      known_vars[m.group(1)] = m.group(2)
  return known_vars["host"]
 Works out the host rustc target. 
Works out the host rustc target.
Works out the host rustc target .
def host_triple(rustc_path):
  args = [rustc_path, "-vV"]
  known_vars = dict()
  proc = subprocess.Popen(args, stdout=subprocess.PIPE)
  for line in io.TextIOWrapper(proc.stdout, encoding="utf-8"):
    m = RUSTC_VERSION_LINE.match(line.rstrip())
    if m:
      known_vars[m.group(1)] = m.group(2)
  return known_vars["host"]
def host_triple ( rustc_path ) : args = [ rustc_path , "-vV" ] known_vars = dict ( ) proc = subprocess . Popen ( args , stdout = subprocess . PIPE ) for line in io . TextIOWrapper ( proc . stdout , encoding = "utf-8" ) : m = RUSTC_VERSION_LINE . match ( line . rstrip ( ) ) if m : known_vars [ m . group ( 1 ) ] = m . group ( 2 ) return known_vars [ "host" ]
Works out the host rustc target.
Works out the host rustc target .
""" Works out the host rustc target. """
rustc_path