diff options
author | somov <somov@yandex-team.ru> | 2022-02-10 16:45:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:49 +0300 |
commit | 7489e4682331202b9c7d863c0898eb83d7b12c2b (patch) | |
tree | 9142afc54d335ea52910662635b898e79e192e49 /build/scripts/clang_wrapper.py | |
parent | a5950576e397b1909261050b8c7da16db58f10b1 (diff) | |
download | ydb-7489e4682331202b9c7d863c0898eb83d7b12c2b.tar.gz |
Restoring authorship annotation for <somov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'build/scripts/clang_wrapper.py')
-rw-r--r-- | build/scripts/clang_wrapper.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/build/scripts/clang_wrapper.py b/build/scripts/clang_wrapper.py index f574e594ac..af3869f789 100644 --- a/build/scripts/clang_wrapper.py +++ b/build/scripts/clang_wrapper.py @@ -1,8 +1,8 @@ import subprocess -import sys - - -def fix(s): +import sys + + +def fix(s): # disable dbg DEVTOOLS-2744 if s == '-g': return None @@ -17,14 +17,14 @@ def fix(s): if s.startswith('-fabi-version'): return None - # remove arguments unknown to clang-cl + # remove arguments unknown to clang-cl if s == '-fcase-insensitive-paths': # or s == '-fno-lto': # DEVTOOLSSUPPORT-3966 - return None - + return None + # Paths under .ya/tools/v3/.../msvc/include are divided with '\' return s.replace('\\', '/') - - + + def fix_path(p): try: i = p.rfind('/bin/clang') @@ -34,7 +34,7 @@ def fix_path(p): return p -if __name__ == '__main__': +if __name__ == '__main__': is_on_win = sys.argv[1] == 'yes' path = sys.argv[2] args = filter(None, [fix(s) for s in sys.argv[3:]]) @@ -46,7 +46,7 @@ if __name__ == '__main__': except ValueError: pass args.append('-fms-compatibility-version=19') - + cmd = [path] + args rc = subprocess.call(cmd, shell=False, stderr=sys.stderr, stdout=sys.stdout) |