ParaView: -no-ipo for intel builds (#18193)
This commit is contained in:
parent
0fdc3bf420
commit
edb91f4077
1 changed files with 5 additions and 0 deletions
|
@ -276,6 +276,11 @@ def flag_handler(self, name, flags):
|
|||
if name == 'ldflags' and self.spec.satisfies('%intel'):
|
||||
flags.append('-shared-intel')
|
||||
return(None, flags, None)
|
||||
# -no-ipo prevents internal compiler error from multi-file
|
||||
# optimization (https://github.com/spack/spack/issues/18192)
|
||||
if (name == 'cflags' or name == 'cxxflags') and self.spec.satisfies('%intel'):
|
||||
flags.append('-no-ipo')
|
||||
return(None, None, flags)
|
||||
return(flags, None, None)
|
||||
|
||||
def setup_run_environment(self, env):
|
||||
|
|
Loading…
Reference in a new issue