ParaView: -no-ipo for intel builds (#18193)

This commit is contained in:
Ethan Stam 2022-05-16 08:01:34 -06:00 committed by GitHub
parent 0fdc3bf420
commit edb91f4077
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -276,6 +276,11 @@ def flag_handler(self, name, flags):
if name == 'ldflags' and self.spec.satisfies('%intel'): if name == 'ldflags' and self.spec.satisfies('%intel'):
flags.append('-shared-intel') flags.append('-shared-intel')
return(None, flags, None) 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) return(flags, None, None)
def setup_run_environment(self, env): def setup_run_environment(self, env):