Skip to content

Commit 154f671

Browse files
committed
NVCC: Handle -D list arg special case
1 parent b4e0e2c commit 154f671

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

refresh.template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ def _nvcc_patch(compile_args: typing.List[str]) -> typing.List[str]:
819819
if ',' in arg: # Unpack NVCC's (fairly unique) comma-separated list format
820820
if arg.startswith('-'):
821821
option, did_partition, remainder = arg.partition('=')
822-
if did_partition:
822+
if did_partition and not arg.startswith('-D'): # -D has a special -D=name=value case.
823823
arg = remainder
824824
else: # Must have been a one-character flag to have no = separator
825825
option = arg[:2]

0 commit comments

Comments
 (0)