diff options
| author | Eli Schwartz <eschwartz93@gmail.com> | 2024-02-26 18:54:47 -0500 |
|---|---|---|
| committer | Eli Schwartz <eschwartz93@gmail.com> | 2024-03-03 13:42:58 -0500 |
| commit | 46f3cff5b26230900473efcd743763daa7c90453 (patch) | |
| tree | 1d89765f34fd2d0b195557af67d7dd47de94856d | |
| parent | 54996132af6d0feaef6afd943c94ff25911ca67b (diff) | |
| download | meson-46f3cff5b26230900473efcd743763daa7c90453.tar.gz | |
compilers: avoid catching -Wl,-soname and wrapping with start/end group
This is just a bad regex match, because it matches *.so as a prospective
filename input even though it is actually not an input but a linker
flag. --start-group is only relevant to input files...
| -rw-r--r-- | mesonbuild/compilers/mixins/clike.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/mixins/clike.py b/mesonbuild/compilers/mixins/clike.py index 76c8e0413..0c840a4f6 100644 --- a/mesonbuild/compilers/mixins/clike.py +++ b/mesonbuild/compilers/mixins/clike.py @@ -44,7 +44,7 @@ else: # do). This gives up DRYer type checking, with no runtime impact Compiler = object -GROUP_FLAGS = re.compile(r'''\.so (?:\.[0-9]+)? (?:\.[0-9]+)? (?:\.[0-9]+)?$ | +GROUP_FLAGS = re.compile(r'''^(?!-Wl,) .*\.so (?:\.[0-9]+)? (?:\.[0-9]+)? (?:\.[0-9]+)?$ | ^(?:-Wl,)?-l | \.a$''', re.X) |
