Skip to content

Commit 9d438af

Browse files
committed
NVCC: Make strip data dict function more clear in name
1 parent 154f671 commit 9d438af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

refresh.template.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -792,10 +792,10 @@ def _nvcc_patch(compile_args: typing.List[str]) -> typing.List[str]:
792792
if skip_next:
793793
skip_next = False
794794
continue
795-
if arg in _nvcc_flags_no_arg:
795+
if arg in _nvcc_flags_to_skip_no_arg:
796796
continue
797797
skip = False
798-
for flag_with_arg in _nvcc_flags_with_arg:
798+
for flag_with_arg in _nvcc_flags_to_skip_with_arg:
799799
if arg == flag_with_arg:
800800
skip = True
801801
skip_next = True
@@ -834,7 +834,7 @@ def _nvcc_patch(compile_args: typing.List[str]) -> typing.List[str]:
834834

835835
return new_compile_args
836836
# Generated via nvcc_clang_diff.py. Consider making use of it if you need to update this!
837-
_nvcc_flags_no_arg = {
837+
_nvcc_flags_to_skip_no_arg = {
838838
# long name, short name
839839
'--Wdefault-stream-launch', '-Wdefault-stream-launch',
840840
'--Wext-lambda-captures-this', '-Wext-lambda-captures-this',
@@ -890,7 +890,7 @@ def _nvcc_patch(compile_args: typing.List[str]) -> typing.List[str]:
890890
'--use-local-env', '-use-local-env',
891891
'--use_fast_math', '-use_fast_math',
892892
}
893-
_nvcc_flags_with_arg = {
893+
_nvcc_flags_to_skip_with_arg = {
894894
# long name, short name
895895
'--archive-options', '-Xarchive',
896896
'--archiver-binary', '-arbin',

0 commit comments

Comments
 (0)