fix some bugs
- fix tests when `--build` is set - don't leak `config.example.toml` fd - don't crash if `config.toml` doesn't exist yet
This commit is contained in:
parent
24e67d51a0
commit
1e7f03718b
4 changed files with 7 additions and 1 deletions
|
@ -1046,6 +1046,8 @@ def bootstrap(args):
|
|||
if not using_default_path or os.path.exists(toml_path):
|
||||
with open(toml_path) as config:
|
||||
config_toml = config.read()
|
||||
else:
|
||||
config_toml = ''
|
||||
|
||||
profile = RustBuild.get_toml_static(config_toml, 'profile')
|
||||
if profile is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue