diff options
author | Gilles Gouaillardet <ggouaillardet@users.noreply.github.com> | 2023-01-16 23:56:13 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-16 15:56:13 +0100 |
commit | 17a67b9a566e0408a2ede14304816579bcda57a7 (patch) | |
tree | 46ca121a9f99945a9e4a96e14601b3a4ce2b1539 /lib | |
parent | 904eefc93049656d038582b654e9d0f31216cb99 (diff) | |
download | spack-17a67b9a566e0408a2ede14304816579bcda57a7.tar.gz spack-17a67b9a566e0408a2ede14304816579bcda57a7.tar.bz2 spack-17a67b9a566e0408a2ede14304816579bcda57a7.tar.xz spack-17a67b9a566e0408a2ede14304816579bcda57a7.zip |
fix libtool filter for Fujitsu compilers (#34916)
Since legit regular expressions are matched, do not pass string=True
to the filter
Refs #34897
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/build_systems/autotools.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/spack/spack/build_systems/autotools.py b/lib/spack/spack/build_systems/autotools.py index 8073abef93..e651723e01 100644 --- a/lib/spack/spack/build_systems/autotools.py +++ b/lib/spack/spack/build_systems/autotools.py @@ -427,15 +427,15 @@ To resolve this problem, please try the following: x.filter(regex="-nostdlib", repl="", string=True) rehead = r"/\S*/" for o in [ - "fjhpctag.o", - "fjcrt0.o", - "fjlang08.o", - "fjomp.o", - "crti.o", - "crtbeginS.o", - "crtendS.o", + r"fjhpctag\.o", + r"fjcrt0\.o", + r"fjlang08\.o", + r"fjomp\.o", + r"crti\.o", + r"crtbeginS\.o", + r"crtendS\.o", ]: - x.filter(regex=(rehead + o), repl="", string=True) + x.filter(regex=(rehead + o), repl="") elif self.pkg.compiler.name == "dpcpp": # Hack to filter out spurious predep_objects when building with Intel dpcpp # (see https://github.com/spack/spack/issues/32863): |