summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorPeter Brady <ptb@lanl.gov>2022-04-11 02:10:47 -0600
committerGitHub <noreply@github.com>2022-04-11 10:10:47 +0200
commitf229f746dbab86bf0ddf44ca6eb1519586b97bf3 (patch)
treeea1f536ac483e475fd9ee88930764f1b9379126c /var
parent7385ea5f01292008a6d9d9d6fae4508dead1b01e (diff)
downloadspack-f229f746dbab86bf0ddf44ca6eb1519586b97bf3.tar.gz
spack-f229f746dbab86bf0ddf44ca6eb1519586b97bf3.tar.bz2
spack-f229f746dbab86bf0ddf44ca6eb1519586b97bf3.tar.xz
spack-f229f746dbab86bf0ddf44ca6eb1519586b97bf3.zip
scorpio: fix build on macOS with Apple Clang 12 or greater (#29977)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/scorpio/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/scorpio/package.py b/var/spack/repos/builtin/packages/scorpio/package.py
index 129d496d2b..e1186f4627 100644
--- a/var/spack/repos/builtin/packages/scorpio/package.py
+++ b/var/spack/repos/builtin/packages/scorpio/package.py
@@ -27,3 +27,10 @@ class Scorpio(CMakePackage):
depends_on('cmake@3.16:', type='build')
depends_on('mpi')
depends_on('hdf5@1.10.6: +hl +mpi')
+
+ def cmake_args(self):
+ opts = []
+ if self.spec.satisfies('%apple-clang@12:'):
+ opts.append(self.define("CMAKE_C_FLAGS",
+ "-Wno-error=implicit-function-declaration"))
+ return opts