diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/llvm-lld/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/llvm-lld/package.py | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/var/spack/repos/builtin/packages/llvm-lld/package.py b/var/spack/repos/builtin/packages/llvm-lld/package.py index 0ebe2e6b89..801c384c79 100644 --- a/var/spack/repos/builtin/packages/llvm-lld/package.py +++ b/var/spack/repos/builtin/packages/llvm-lld/package.py @@ -25,28 +25,24 @@ from spack import * -class LlvmLld(Package): +class LlvmLld(CMakePackage): """lld - The LLVM Linker lld is a new set of modular code for creating linker tools.""" homepage = "http://lld.llvm.org" url = "http://llvm.org/releases/3.4/lld-3.4.src.tar.gz" - depends_on('llvm') - version('3.4', '3b6a17e58c8416c869c14dd37682f78e') - depends_on('cmake', type='build') + depends_on('llvm') + depends_on('cmake@2.8:', type='build') - def install(self, spec, prefix): + def cmake_args(self): if 'CXXFLAGS' in env and env['CXXFLAGS']: env['CXXFLAGS'] += ' ' + self.compiler.cxx11_flag else: env['CXXFLAGS'] = self.compiler.cxx11_flag - with working_dir('spack-build', create=True): - cmake('..', - '-DLLD_PATH_TO_LLVM_BUILD=%s' % spec['llvm'].prefix, - '-DLLVM_MAIN_SRC_DIR=%s' % spec['llvm'].prefix, - *std_cmake_args) - make() - make("install") + return [ + '-DLLD_PATH_TO_LLVM_BUILD=%s' % spec['llvm'].prefix, + '-DLLVM_MAIN_SRC_DIR=%s' % spec['llvm'].prefix, + ] |