]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Allow freestanding lib script regex to detect XXH64(
authorsenhuang42 <senhuang96@fb.com>
Thu, 7 Jan 2021 17:09:46 +0000 (12:09 -0500)
committersenhuang42 <senhuang96@fb.com>
Thu, 7 Jan 2021 17:29:12 +0000 (12:29 -0500)
contrib/freestanding_lib/freestanding.py

index f8f20694454433833446340aa350889b8d11ba68..32d4fcbea86c22aada647794aab93948ea0e75f2 100755 (executable)
@@ -576,7 +576,7 @@ class Freestanding(object):
             )
         if self._xxh64_prefix is not None:
             replacements.append(
-                (re.compile(r"([^\w]|^)(?P<orig>XXH64)_"), self._xxh64_prefix)
+                (re.compile(r"([^\w]|^)(?P<orig>XXH64)[\(_]"), self._xxh64_prefix)
             )
         for filepath in self._dst_lib_file_paths():
             file = FileLines(filepath)