diff --git a/var/spack/repos/builtin/packages/paraview/package.py b/var/spack/repos/builtin/packages/paraview/package.py index 46728290f0..234fbc8c83 100644 --- a/var/spack/repos/builtin/packages/paraview/package.py +++ b/var/spack/repos/builtin/packages/paraview/package.py @@ -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):