ParaView, LLVM: add -shared-intel to solve intel linking failures (#18195)

This commit is contained in:
Ethan Stam 2021-02-09 15:26:49 -07:00 committed by GitHub
parent 2697c73097
commit 865d38afa7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 2 deletions

View file

@ -393,8 +393,14 @@ def codesign_check(self):
'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:

View file

@ -181,6 +181,12 @@ def setup_dependent_build_environment(self, env, dependent_spec):
env.set('PARAVIEW_VTK_DIR',
join_path(lib_dir, 'cmake', self.paraview_subdir, 'vtk'))
def flag_handler(self, name, flags):
if 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):
# paraview 5.5 and later
# - cmake under lib/cmake/paraview-5.5