Add init_config args in compilers/__init__
This commit is contained in:
parent
4c4f3e9747
commit
d515877d91
1 changed files with 3 additions and 3 deletions
|
@ -117,14 +117,14 @@ def init_compiler_config():
|
|||
return [] # Return empty list which we will later append to.
|
||||
|
||||
|
||||
def add_compilers_to_config(compilers, scope=None):
|
||||
def add_compilers_to_config(compilers, scope=None, init_config=True):
|
||||
"""Add compilers to the config for the specified architecture.
|
||||
|
||||
Arguments:
|
||||
- compilers: a list of Compiler objects.
|
||||
- scope: configuration scope to modify.
|
||||
"""
|
||||
compiler_config = get_compiler_config(scope)
|
||||
compiler_config = get_compiler_config(scope, init_config)
|
||||
for compiler in compilers:
|
||||
compiler_config.append(_to_dict(compiler))
|
||||
global _cache_config_file
|
||||
|
|
Loading…
Reference in a new issue