mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-29 19:47:38 +00:00
bootstrap: plumb verbosity into submodule ops
Fix some lints while I'm here.
This commit is contained in:
parent
4a8933f4a7
commit
e788fa7b6c
@ -625,7 +625,6 @@ class RustBuild(object):
|
|||||||
|
|
||||||
def build_triple(self):
|
def build_triple(self):
|
||||||
"""Build triple as in LLVM"""
|
"""Build triple as in LLVM"""
|
||||||
default_encoding = sys.getdefaultencoding()
|
|
||||||
config = self.get_toml('build')
|
config = self.get_toml('build')
|
||||||
if config:
|
if config:
|
||||||
return config
|
return config
|
||||||
@ -638,7 +637,7 @@ class RustBuild(object):
|
|||||||
return
|
return
|
||||||
print('Updating submodules')
|
print('Updating submodules')
|
||||||
default_encoding = sys.getdefaultencoding()
|
default_encoding = sys.getdefaultencoding()
|
||||||
run(["git", "submodule", "-q", "sync"], cwd=self.rust_root)
|
run(["git", "submodule", "-q", "sync"], cwd=self.rust_root, verbose=self.verbose)
|
||||||
submodules = [s.split(' ', 1)[1] for s in subprocess.check_output(
|
submodules = [s.split(' ', 1)[1] for s in subprocess.check_output(
|
||||||
["git", "config", "--file",
|
["git", "config", "--file",
|
||||||
os.path.join(self.rust_root, ".gitmodules"),
|
os.path.join(self.rust_root, ".gitmodules"),
|
||||||
@ -683,7 +682,7 @@ def bootstrap():
|
|||||||
try:
|
try:
|
||||||
with open(args.config or 'config.toml') as config:
|
with open(args.config or 'config.toml') as config:
|
||||||
build.config_toml = config.read()
|
build.config_toml = config.read()
|
||||||
except:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if '\nverbose = 2' in build.config_toml:
|
if '\nverbose = 2' in build.config_toml:
|
||||||
|
Loading…
Reference in New Issue
Block a user