summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/sed/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/sed/package.py b/var/spack/repos/builtin/packages/sed/package.py
index cbf691d0c3..5960fd6b61 100644
--- a/var/spack/repos/builtin/packages/sed/package.py
+++ b/var/spack/repos/builtin/packages/sed/package.py
@@ -35,3 +35,10 @@ class Sed(AutotoolsPackage, GNUMirrorPackage):
version_regexp = r"{:s} \(GNU sed\) (\S+)".format(exe)
match = re.search(version_regexp, output)
return match.group(1) if match else None
+
+ def flag_handler(self, name, flags):
+ iflags = []
+ if name == "cflags":
+ if self.spec.satisfies("%oneapi@2023.0.0:"):
+ iflags.append("-Wno-error=incompatible-function-pointer-types")
+ return (iflags, None, None)