1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

nix-meson-build-support/common nix_soversion: fixup removal of 'pre'

.strip() removes individual chars whereas .replace() affects whole substring

Thanks @keszybz
This commit is contained in:
Jens Petersen 2025-09-16 18:31:40 +08:00
parent 1a69fc6ab5
commit ca23c819e0

View file

@ -42,4 +42,4 @@ if cxx.get_id() == 'clang' and ('address' in get_option('b_sanitize') or 'undefi
endif endif
# Darwin ld doesn't like "X.Y.Zpre" # Darwin ld doesn't like "X.Y.Zpre"
nix_soversion = meson.project_version().strip('pre') nix_soversion = meson.project_version().replace('pre', '')