diff options
author | Scott McMillan <scott.andrew.mcmillan@gmail.com> | 2021-04-16 17:37:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-16 16:37:10 -0600 |
commit | 212d33ecdad2b38977af7a045136045b21e7c4f5 (patch) | |
tree | 05ad243f2c70b1d5bc0dbbc662b60053af8ff7c1 | |
parent | c69b750a52e813353e261e7d1f3a49ac3d1e0a81 (diff) | |
download | spack-212d33ecdad2b38977af7a045136045b21e7c4f5.tar.gz spack-212d33ecdad2b38977af7a045136045b21e7c4f5.tar.bz2 spack-212d33ecdad2b38977af7a045136045b21e7c4f5.tar.xz spack-212d33ecdad2b38977af7a045136045b21e7c4f5.zip |
Update readline package for NVIDIA compilers (#23019)
Co-authored-by: Scott McMillan <smcmillan@nvidia.com>
-rw-r--r-- | var/spack/repos/builtin/packages/readline/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/readline/package.py b/var/spack/repos/builtin/packages/readline/package.py index 2edb50317e..c092b26b8d 100644 --- a/var/spack/repos/builtin/packages/readline/package.py +++ b/var/spack/repos/builtin/packages/readline/package.py @@ -30,3 +30,11 @@ class Readline(AutotoolsPackage, GNUMirrorPackage): def build(self, spec, prefix): make('SHLIB_LIBS=' + spec['ncurses'].libs.ld_flags) + + def patch(self): + # Remove flags not recognized by the NVIDIA compiler + if self.spec.satisfies('%nvhpc'): + filter_file('${GCC+-Wno-parentheses}', '', 'configure', + string=True) + filter_file('${GCC+-Wno-format-security}', '', 'configure', + string=True) |