hotfix cuda build with -mllvm options begining with -i (like -inline-threshold=1000)
@@ -91,6 +91,10 @@ def main():
while cflags_queue:
arg = cflags_queue.popleft()
+ if arg == '-mllvm':
+ compiler_args.append(arg)
+ compiler_args.append(cflags_queue.popleft())
+ continue
if arg[:2].upper() in ('-I', '/I', '-B'):
value = arg[2:]
if not value:
