1
Fork 0

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:
jyn 2023-06-25 10:01:04 -05:00
parent 24e67d51a0
commit 1e7f03718b
4 changed files with 7 additions and 1 deletions

View file

@ -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: