diff options
author | somov <somov@yandex-team.ru> | 2022-02-10 16:45:47 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:47 +0300 |
commit | a5950576e397b1909261050b8c7da16db58f10b1 (patch) | |
tree | 7ba7677f6a4c3e19e2cefab34d16df2c8963b4d4 /build/scripts/clang_wrapper.py | |
parent | 81eddc8c0b55990194e112b02d127b87d54164a9 (diff) | |
download | ydb-a5950576e397b1909261050b8c7da16db58f10b1.tar.gz |
Restoring authorship annotation for <somov@yandex-team.ru>. Commit 1 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 af3869f789..f574e594ac 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) |