summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreugeneswalker <38933153+eugeneswalker@users.noreply.github.com>2023-01-12 10:53:00 -0800
committerGitHub <noreply@github.com>2023-01-12 10:53:00 -0800
commitdeef4177f70cf288dfc5314ac5d2e800b2073d09 (patch)
tree51b0fabab5ea99d31d8048e665f524c8adda2c70
parenta1c840b3e853b99b13a4c6a00eed758cb0e84b04 (diff)
downloadspack-deef4177f70cf288dfc5314ac5d2e800b2073d09.tar.gz
spack-deef4177f70cf288dfc5314ac5d2e800b2073d09.tar.bz2
spack-deef4177f70cf288dfc5314ac5d2e800b2073d09.tar.xz
spack-deef4177f70cf288dfc5314ac5d2e800b2073d09.zip
sed %oneapi@2023.0.0: -Wno-error=incompatible-function-pointer-types (#34898)
-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)