summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMario Melara <maamelara@gmail.com>2016-06-18 10:50:55 -0700
committerMario Melara <maamelara@gmail.com>2016-06-18 10:50:55 -0700
commit36275f8e6eec5b7238e17743a3ec9a2aff371941 (patch)
tree0f637214b56fc2bd5195f129745581a3eaea5e83 /lib
parentccb62b46204531fa4ceeadd3b1722b0bb0e30f4f (diff)
downloadspack-36275f8e6eec5b7238e17743a3ec9a2aff371941.tar.gz
spack-36275f8e6eec5b7238e17743a3ec9a2aff371941.tar.bz2
spack-36275f8e6eec5b7238e17743a3ec9a2aff371941.tar.xz
spack-36275f8e6eec5b7238e17743a3ec9a2aff371941.zip
More clean up of init_config, also no need for a different find_compilers function.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/compilers/__init__.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/spack/spack/compilers/__init__.py b/lib/spack/spack/compilers/__init__.py
index 0543ce8af1..ae72b743b2 100644
--- a/lib/spack/spack/compilers/__init__.py
+++ b/lib/spack/spack/compilers/__init__.py
@@ -124,7 +124,7 @@ def add_compilers_to_config(compilers, scope=None):
- compilers: a list of Compiler objects.
- scope: configuration scope to modify.
"""
- compiler_config = get_compiler_config(scope, init_config)
+ compiler_config = get_compiler_config(scope)
for compiler in compilers:
compiler_config.append(_to_dict(compiler))
global _cache_config_file
@@ -185,12 +185,6 @@ def default_compiler():
def find_compilers(*paths):
- """ Call find compilers help and return the list it finds using
- the operating system method (PATHS, MODULES) """
- return _find_compilers(*paths)
-
-
-def _find_compilers(*paths):
"""Return a list of compilers found in the suppied paths.
This invokes the find_compilers() method for each operating
system associated with the host platform, and appends
@@ -203,6 +197,7 @@ def _find_compilers(*paths):
compiler_lists.extend(o.find_compilers(*paths))
return compiler_lists
+
def supported_compilers():
"""Return a set of names of compilers supported by Spack.