diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2025-02-24 17:28:45 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2025-02-24 17:41:01 +0300 |
commit | 625b0b4c1f0275ee928b9a6ded1a491569c51bf9 (patch) | |
tree | 5b2d661363ad9e8de033e726348095b516f3ad52 /contrib/libs | |
parent | 5cacc5455bffe7f55e238eb87fee7eee00303c86 (diff) | |
download | ydb-625b0b4c1f0275ee928b9a6ded1a491569c51bf9.tar.gz |
Intermediate changes
commit_hash:590ab6fc732109ce9285efdef399967a41e639bf
Diffstat (limited to 'contrib/libs')
-rw-r--r-- | contrib/libs/protobuf_old/protoherobora.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/contrib/libs/protobuf_old/protoherobora.py b/contrib/libs/protobuf_old/protoherobora.py index 9b85a204bc..fe4a0174b4 100644 --- a/contrib/libs/protobuf_old/protoherobora.py +++ b/contrib/libs/protobuf_old/protoherobora.py @@ -132,6 +132,14 @@ def find_lld(args): raise IndexError() +def find_clang(args): + for x in args: + if 'clang++' in x: + return x + + raise IndexError() + + def fix_py2(cmd, have_comand_files=False, prefix='lib', suffix='a'): args = cmd @@ -156,7 +164,10 @@ def fix_py2(cmd, have_comand_files=False, prefix='lib', suffix='a'): try: where = os.path.dirname(cmd[cmd.index('--objcopy-exe') + 1]) + '/' except ValueError: - where = os.path.dirname(find_lld(cmd)) + '/' + try: + where = os.path.dirname(find_lld(cmd)) + '/' + except IndexError: + where = os.path.dirname(find_clang(cmd)) + '/' for x in args: if need_rename(x): |