summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2021-04-23 06:22:39 -0700
committerGitHub <noreply@github.com>2021-04-23 15:22:39 +0200
commit80c8b11d777fec3fd577f8ea65116955348cd3c2 (patch)
tree3ace18e51d6a4e70e9380e339d815a0804b67a06 /var
parent30c81b127c783e4a4e0233c96b5f7da1c73f214f (diff)
downloadspack-80c8b11d777fec3fd577f8ea65116955348cd3c2.tar.gz
spack-80c8b11d777fec3fd577f8ea65116955348cd3c2.tar.bz2
spack-80c8b11d777fec3fd577f8ea65116955348cd3c2.tar.xz
spack-80c8b11d777fec3fd577f8ea65116955348cd3c2.zip
mpich: post-configure patch for cce (#23193)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/mpich/package.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mpich/package.py b/var/spack/repos/builtin/packages/mpich/package.py
index 8fabb5718a..b4d132fe73 100644
--- a/var/spack/repos/builtin/packages/mpich/package.py
+++ b/var/spack/repos/builtin/packages/mpich/package.py
@@ -190,6 +190,17 @@ spack package at this time.''',
# see https://github.com/pmodels/mpich/pull/5031
conflicts('%clang@:7', when='@3.4:')
+ @run_after('configure')
+ def patch_cce(self):
+ # Configure misinterprets output from the cce compiler
+ # Patching configure instead should be possible, but a first
+ # implementation failed in obscure ways that were not worth
+ # tracking down when this worked
+ if self.spec.satisfies('%cce'):
+ filter_file('-L -L', '', 'config.lt', string=True)
+ filter_file('-L -L', '', 'libtool', string=True)
+ filter_file('-L -L', '', 'config.status', string=True)
+
@classmethod
def determine_version(cls, exe):
output = Executable(exe)(output=str, error=str)