[PATCH] D133923: [Release] Add bump-version script.

Louis Dionne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 27 06:04:08 PDT 2022


ldionne accepted this revision.
ldionne added a comment.

LGTM, but please note that the `XXYZZ` => `XXYYZZ` change in libc++ has been done. My suggested changes should cover that.



================
Comment at: llvm/utils/release/bump-version.py:174-179
+        # match #define _LIBCPP_VERSION 15000 in a relaxed way
+        match = re.match(r".*\s_LIBCPP_VERSION\s+(\d{5})$", line)
+        if match:
+            # The current libc++ format is XXYZZ so minor just gets
+            # a single number, but this will be fixed in a future version
+            verstr = f"{str(self.major).zfill(2)}{self.minor}{str(self.patch).zfill(2)}"
----------------



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133923/new/

https://reviews.llvm.org/D133923



More information about the llvm-commits mailing list