diff options
author | heretic <heretic@yandex-team.ru> | 2022-02-10 16:45:46 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:46 +0300 |
commit | 81eddc8c0b55990194e112b02d127b87d54164a9 (patch) | |
tree | 9142afc54d335ea52910662635b898e79e192e49 /build/scripts/compile_cuda.py | |
parent | 397cbe258b9e064f49c4ca575279f02f39fef76e (diff) | |
download | ydb-81eddc8c0b55990194e112b02d127b87d54164a9.tar.gz |
Restoring authorship annotation for <heretic@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'build/scripts/compile_cuda.py')
-rw-r--r-- | build/scripts/compile_cuda.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/build/scripts/compile_cuda.py b/build/scripts/compile_cuda.py index c54351eeb4e..c0bec50b2a6 100644 --- a/build/scripts/compile_cuda.py +++ b/build/scripts/compile_cuda.py @@ -63,15 +63,15 @@ def main(): if flag in cflags: cflags.remove(flag) - skip_prefix_list = [ - '-fsanitize=', + skip_prefix_list = [ + '-fsanitize=', '-fsanitize-coverage=', - '-fsanitize-blacklist=', + '-fsanitize-blacklist=', '--system-header-prefix', - ] - for prefix in skip_prefix_list: - cflags = [i for i in cflags if not i.startswith(prefix)] - + ] + for prefix in skip_prefix_list: + cflags = [i for i in cflags if not i.startswith(prefix)] + if not is_clang(command): def good(arg): if arg.startswith('--target='): @@ -99,14 +99,14 @@ def main(): compiler_args.append(arg) compiler_args.append(cflags_queue.popleft()) continue - if arg[:2].upper() in ('-I', '/I', '-B'): + if arg[:2].upper() in ('-I', '/I', '-B'): value = arg[2:] if not value: value = cflags_queue.popleft() - if arg[1] == 'I': + if arg[1] == 'I': cpp_args.append('-I{}'.format(value)) - elif arg[1] == 'B': # todo: delete "B" flag check when cuda stop to use gcc - pass + elif arg[1] == 'B': # todo: delete "B" flag check when cuda stop to use gcc + pass continue match = re.match(r'[-/]D(.*)', arg) |