ParaView, LLVM: add -shared-intel to solve intel linking failures (#18195)
This commit is contained in:
parent
2697c73097
commit
865d38afa7
2 changed files with 14 additions and 2 deletions
|
@ -393,8 +393,14 @@ def codesign_check(self):
|
||||||
'create this identity.'
|
'create this identity.'
|
||||||
)
|
)
|
||||||
|
|
||||||
def setup_build_environment(self, env):
|
def flag_handler(self, name, flags):
|
||||||
env.append_flags("CXXFLAGS", self.compiler.cxx11_flag)
|
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):
|
def setup_run_environment(self, env):
|
||||||
if "+clang" in self.spec:
|
if "+clang" in self.spec:
|
||||||
|
|
|
@ -181,6 +181,12 @@ def setup_dependent_build_environment(self, env, dependent_spec):
|
||||||
env.set('PARAVIEW_VTK_DIR',
|
env.set('PARAVIEW_VTK_DIR',
|
||||||
join_path(lib_dir, 'cmake', self.paraview_subdir, 'vtk'))
|
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):
|
def setup_run_environment(self, env):
|
||||||
# paraview 5.5 and later
|
# paraview 5.5 and later
|
||||||
# - cmake under lib/cmake/paraview-5.5
|
# - cmake under lib/cmake/paraview-5.5
|
||||||
|
|
Loading…
Reference in a new issue