summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMario Melara <maamelara@gmail.com>2016-06-20 14:54:26 -0700
committerMario Melara <maamelara@gmail.com>2016-06-20 16:20:52 -0700
commitd515877d91300c6fb57e84f83011ded15737ca73 (patch)
treeb11d4e13799890cd6f0715d44513f7e408827433 /lib
parent4c4f3e974723210ca15e00e44daff3ad1e1098e7 (diff)
downloadspack-d515877d91300c6fb57e84f83011ded15737ca73.tar.gz
spack-d515877d91300c6fb57e84f83011ded15737ca73.tar.bz2
spack-d515877d91300c6fb57e84f83011ded15737ca73.tar.xz
spack-d515877d91300c6fb57e84f83011ded15737ca73.zip
Add init_config args in compilers/__init__
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/compilers/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/spack/compilers/__init__.py b/lib/spack/spack/compilers/__init__.py
index c4b41394e0..a70d42982f 100644
--- a/lib/spack/spack/compilers/__init__.py
+++ b/lib/spack/spack/compilers/__init__.py
@@ -93,7 +93,7 @@ def get_compiler_config(scope=None, init_config=True):
for compiler in compilers:
compilers_dict.append(_to_dict(compiler))
spack.config.update_config('compilers', compilers_dict, scope=scope)
-
+
config = spack.config.get_config('compilers', scope=scope)
# Update the configuration if there are currently no compilers
# configured. Avoid updating automatically if there ARE site
@@ -117,14 +117,14 @@ def get_compiler_config(scope=None, init_config=True):
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