diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/compiler.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/spack/spack/compiler.py b/lib/spack/spack/compiler.py index 36a2704eac..9fc7aa51a2 100644 --- a/lib/spack/spack/compiler.py +++ b/lib/spack/spack/compiler.py @@ -250,13 +250,13 @@ class Compiler(object): PrgEnv_compiler = None def __init__(self, cspec, operating_system, target, - paths, modules=[], alias=None, environment=None, + paths, modules=None, alias=None, environment=None, extra_rpaths=None, enable_implicit_rpaths=None, **kwargs): self.spec = cspec self.operating_system = str(operating_system) self.target = target - self.modules = modules + self.modules = modules or [] self.alias = alias self.extra_rpaths = extra_rpaths self.enable_implicit_rpaths = enable_implicit_rpaths @@ -317,6 +317,10 @@ class Compiler(object): first_compiler = next((c for c in paths if c), None) if not first_compiler: return [] + if not cls.verbose_flag(): + # In this case there is no mechanism to learn what link directories + # are used by the compiler + return [] try: tmpdir = tempfile.mkdtemp(prefix='spack-implicit-link-info') |