diff options
author | Mario Melara <maamelara@gmail.com> | 2016-06-20 10:57:10 -0700 |
---|---|---|
committer | Mario Melara <maamelara@gmail.com> | 2016-06-20 10:57:10 -0700 |
commit | fe301135021a9f64069a9bf2e3a074c8d4b712ef (patch) | |
tree | fbd4fd721e297cbcc7984620d65d56bcd5d947c3 /lib | |
parent | 64c83638fff9716477ecbc3d87989b6b8437b05f (diff) | |
download | spack-fe301135021a9f64069a9bf2e3a074c8d4b712ef.tar.gz spack-fe301135021a9f64069a9bf2e3a074c8d4b712ef.tar.bz2 spack-fe301135021a9f64069a9bf2e3a074c8d4b712ef.tar.xz spack-fe301135021a9f64069a9bf2e3a074c8d4b712ef.zip |
Adding init_config back. Don't initalize config rather let compiler_find do all the work. spack compiler list and spack compilers can do the work
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/cmd/compiler.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/spack/spack/cmd/compiler.py b/lib/spack/spack/cmd/compiler.py index c95045ef85..ff26bc6ba2 100644 --- a/lib/spack/spack/cmd/compiler.py +++ b/lib/spack/spack/cmd/compiler.py @@ -76,8 +76,13 @@ def compiler_find(args): if not paths: paths = get_path('PATH') - compilers = [c for c in spack.compilers.find_compilers(*args.add_paths) - if c.spec not in spack.compilers.all_compilers(scope=args.scope)] + # Don't initialize compilers config via compilers.get_compiler_config. + # Just let compiler_find do the + # entire process and return an empty config from all_compilers + # Default for any other process is init_config=True + compilers = [c for c in spack.compilers.find_compilers(*paths) + 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) n = len(compilers) |