summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreugeneswalker <38933153+eugeneswalker@users.noreply.github.com>2022-08-14 04:32:19 -0700
committerGitHub <noreply@github.com>2022-08-14 07:32:19 -0400
commita56e779071bf28957e3851e8904d20a6b5ac121b (patch)
tree19e3f5f8e39c7bcdf8c317ff40ca76e76fc8b574
parente250371ee29661237ab4ae43969175abb6bc7982 (diff)
downloadspack-a56e779071bf28957e3851e8904d20a6b5ac121b.tar.gz
spack-a56e779071bf28957e3851e8904d20a6b5ac121b.tar.bz2
spack-a56e779071bf28957e3851e8904d20a6b5ac121b.tar.xz
spack-a56e779071bf28957e3851e8904d20a6b5ac121b.zip
superlu-dist %oneapi: add -Wno-implicit-function-declaration (#32081)
-rw-r--r--var/spack/repos/builtin/packages/superlu-dist/package.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/superlu-dist/package.py b/var/spack/repos/builtin/packages/superlu-dist/package.py
index ce3dd2f638..b87c506278 100644
--- a/var/spack/repos/builtin/packages/superlu-dist/package.py
+++ b/var/spack/repos/builtin/packages/superlu-dist/package.py
@@ -129,6 +129,8 @@ class SuperluDist(CMakePackage, CudaPackage, ROCmPackage):
flags.append(self.compiler.cxx11_flag)
if name == "cflags" and "%pgi" not in self.spec:
flags.append("-std=c99")
+ if name == "cflags" and self.spec.satisfies("%oneapi"):
+ flags.append("-Wno-error=implicit-function-declaration")
return (None, None, flags)
examples_src_dir = "EXAMPLE"