diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/llvm/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/llvm/package.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py index 6e3479de89..60d1bb41a3 100644 --- a/var/spack/repos/builtin/packages/llvm/package.py +++ b/var/spack/repos/builtin/packages/llvm/package.py @@ -393,8 +393,14 @@ class Llvm(CMakePackage, CudaPackage): 'create this identity.' ) - def setup_build_environment(self, env): - env.append_flags("CXXFLAGS", self.compiler.cxx11_flag) + def flag_handler(self, name, flags): + if name == 'cxxflags': + flags.append(self.compiler.cxx11_flag) + return(None, flags, None) + elif name == 'ldflags' and self.spec.satisfies('%intel'): + flags.append('-shared-intel') + return(None, flags, None) + return(flags, None, None) def setup_run_environment(self, env): if "+clang" in self.spec: |