diff options
author | Peter Brady <ptb@lanl.gov> | 2022-04-11 02:11:34 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-11 10:11:34 +0200 |
commit | c364a04a4299178e4a247059a0e7d78813e70480 (patch) | |
tree | b4244ded34b56025f824d9ad674f7e4ed7808e1e /var | |
parent | f229f746dbab86bf0ddf44ca6eb1519586b97bf3 (diff) | |
download | spack-c364a04a4299178e4a247059a0e7d78813e70480.tar.gz spack-c364a04a4299178e4a247059a0e7d78813e70480.tar.bz2 spack-c364a04a4299178e4a247059a0e7d78813e70480.tar.xz spack-c364a04a4299178e4a247059a0e7d78813e70480.zip |
chaco: fix build on macOS with Apple Clang 12 or greater (#29975)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/chaco/package.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/chaco/package.py b/var/spack/repos/builtin/packages/chaco/package.py index b07a8c7176..bd5f26426d 100644 --- a/var/spack/repos/builtin/packages/chaco/package.py +++ b/var/spack/repos/builtin/packages/chaco/package.py @@ -22,6 +22,8 @@ class Chaco(CMakePackage): depends_on('cmake@3.16:', type='build') def cmake_args(self): - return [ - self.define_from_variant('BUILD_SHARED_LIBS', 'shared') - ] + opts = [self.define_from_variant('BUILD_SHARED_LIBS', 'shared')] + if self.spec.satisfies('%apple-clang@12:'): + opts.append(self.define("CMAKE_C_FLAGS", + "-Wno-error=implicit-function-declaration")) + return opts |