Preinstall some llvm shared libraries so tblgen will work. (#5988)
This commit is contained in:
parent
0ecef7d7f8
commit
8a812294e0
@ -426,9 +426,16 @@ def cmake_args(self):
|
|||||||
|
|
||||||
if spec.satisfies('@4.0.0:') and spec.satisfies('platform=linux'):
|
if spec.satisfies('@4.0.0:') and spec.satisfies('platform=linux'):
|
||||||
cmake_args.append('-DCMAKE_BUILD_WITH_INSTALL_RPATH=1')
|
cmake_args.append('-DCMAKE_BUILD_WITH_INSTALL_RPATH=1')
|
||||||
|
|
||||||
return cmake_args
|
return cmake_args
|
||||||
|
|
||||||
|
@run_before('build')
|
||||||
|
def pre_install(self):
|
||||||
|
with working_dir(self.build_directory):
|
||||||
|
# When building shared libraries these need to be installed first
|
||||||
|
make('install-LLVMTableGen')
|
||||||
|
make('install-LLVMDemangle')
|
||||||
|
make('install-LLVMSupport')
|
||||||
|
|
||||||
@run_after('install')
|
@run_after('install')
|
||||||
def post_install(self):
|
def post_install(self):
|
||||||
if '+clang' in self.spec and '+python' in self.spec:
|
if '+clang' in self.spec and '+python' in self.spec:
|
||||||
|
Loading…
Reference in New Issue
Block a user