Skip to content

Commit ca23c81

Browse files
committed
nix-meson-build-support/common nix_soversion: fixup removal of 'pre'
.strip() removes individual chars whereas .replace() affects whole substring Thanks @keszybz
1 parent 1a69fc6 commit ca23c81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nix-meson-build-support/common/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ if cxx.get_id() == 'clang' and ('address' in get_option('b_sanitize') or 'undefi
4242
endif
4343

4444
# Darwin ld doesn't like "X.Y.Zpre"
45-
nix_soversion = meson.project_version().strip('pre')
45+
nix_soversion = meson.project_version().replace('pre', '')

0 commit comments

Comments
 (0)