summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMario Melara <maamelara@gmail.com>2016-06-20 14:46:28 -0700
committerMario Melara <maamelara@gmail.com>2016-06-20 16:20:33 -0700
commit4c4f3e974723210ca15e00e44daff3ad1e1098e7 (patch)
tree35df0a50467771c35fbafb25cc052d8ba67a6904
parent6fb7b0fcf76bbd1cac501fd9cfa11d971c80f979 (diff)
downloadspack-4c4f3e974723210ca15e00e44daff3ad1e1098e7.tar.gz
spack-4c4f3e974723210ca15e00e44daff3ad1e1098e7.tar.bz2
spack-4c4f3e974723210ca15e00e44daff3ad1e1098e7.tar.xz
spack-4c4f3e974723210ca15e00e44daff3ad1e1098e7.zip
Add init_config to compiler_find method
-rw-r--r--lib/spack/spack/cmd/compiler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/compiler.py b/lib/spack/spack/cmd/compiler.py
index ff26bc6ba2..c325628ebf 100644
--- a/lib/spack/spack/cmd/compiler.py
+++ b/lib/spack/spack/cmd/compiler.py
@@ -84,7 +84,8 @@ def compiler_find(args):
if c.spec not in spack.compilers.all_compilers(
scope=args.scope, init_config=False)]
if compilers:
- spack.compilers.add_compilers_to_config(compilers, scope=args.scope)
+ spack.compilers.add_compilers_to_config(compilers, scope=args.scope,
+ init_config=False)
n = len(compilers)
s = 's' if n > 1 else ''
filename = spack.config.get_config_filename(args.scope, 'compilers')