charmpp: disable pre-7.0.0 macOS builds with clang@7: (#28221)

Charm++ versions below 7.0.0 have build issues on macOS, mainly due to the
pre-7.0.0 `VERSION` file conflicting with other version files on the
system: https://github.com/UIUC-PPL/charm/issues/2844. Specifically, it
conflicts with LLVM's `<version>` header that was added in llvm@7.0.0 to
comply with the C++20 standard:
https://en.cppreference.com/w/cpp/header/version. The conflict only occurs
on case-insensitive file systems, as typically used on macOS machines.
This commit is contained in:
Nils Leif Fischer 2022-01-12 15:53:49 +01:00 committed by GitHub
parent faaf38ca7d
commit 0e1e705e15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,6 +131,16 @@ class Charmpp(Package):
# https://github.com/UIUC-PPL/charm/issues/3181 # https://github.com/UIUC-PPL/charm/issues/3181
conflicts("+shared", when="platform=darwin %gcc") conflicts("+shared", when="platform=darwin %gcc")
# Charm++ versions below 7.0.0 have build issues on macOS, mainly due to the
# pre-7.0.0 `VERSION` file conflicting with other version files on the
# system: https://github.com/UIUC-PPL/charm/issues/2844. Specifically, it
# conflicts with LLVM's `<version>` header that was added in llvm@7.0.0 to
# comply with the C++20 standard:
# https://en.cppreference.com/w/cpp/header/version. The conflict only occurs
# on case-insensitive file systems, as typically used on macOS machines.
conflicts("@:6", when="platform=darwin %apple-clang@7:")
conflicts("@:6", when="platform=darwin %clang@7:")
@property @property
def charmarch(self): def charmarch(self):
plat = sys.platform plat = sys.platform