diff options
author | akhropov <akhropov@yandex-team.com> | 2024-02-13 20:51:54 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@ydb.tech> | 2024-02-14 14:27:04 +0000 |
commit | 770c09d4ba2ed05f24219a31625f977c5f2aa9a3 (patch) | |
tree | 1c485ec972c1ad0bed7da88e1e6ed8c85e663f7f /build/scripts/create_recursive_library_for_cmake.py | |
parent | e082c12d403dbbb3587a64411fa3f3cf69d50258 (diff) | |
download | ydb-770c09d4ba2ed05f24219a31625f977c5f2aa9a3.tar.gz |
Fix in regexps for 'ar' versions - use raw strings. Curiously enough they worked correctly either way but the old version produces a warning on python 3.12
Diffstat (limited to 'build/scripts/create_recursive_library_for_cmake.py')
-rw-r--r-- | build/scripts/create_recursive_library_for_cmake.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/scripts/create_recursive_library_for_cmake.py b/build/scripts/create_recursive_library_for_cmake.py index 33805d18d8..11c80fb0d2 100644 --- a/build/scripts/create_recursive_library_for_cmake.py +++ b/build/scripts/create_recursive_library_for_cmake.py @@ -130,9 +130,9 @@ class FilesCombiner(object): archiver_tool_path = 'libtool' elif opts.is_msvc_compatible_linker: arch_type = 'LIB' - elif re.match('^(|.*/)llvm\-ar(\-[\d])?', opts.parsed_args.cmake_ar): + elif re.match(r'^(|.*/)llvm\-ar(\-[\d])?', opts.parsed_args.cmake_ar): arch_type = 'LLVM_AR' - elif re.match('^(|.*/)(gcc\-)?ar(\-[\d])?', opts.parsed_args.cmake_ar): + elif re.match(r'^(|.*/)(gcc\-)?ar(\-[\d])?', opts.parsed_args.cmake_ar): arch_type = 'GNU_AR' else: raise Exception('Unsupported arch type for CMAKE_AR={}'.format(opts.parsed_args.cmake_ar)) |