Remove extra level of quoting in cuda toolchain

This isn't necessary and in fact breaks argument parsing when Bazel
passes defines that are quote escaped, like `FOO="string"`.

PiperOrigin-RevId: 392478003
Change-Id: I97874313b2bf8fbc2cfa5d45354561eb250c4668
This commit is contained in:
Geoffrey Martin-Noble
2021-08-23 11:25:00 -07:00
committed by TensorFlower Gardener
parent c74a7b0169
commit 00589a15db

View File

@@ -27,7 +27,6 @@ import os
import subprocess
import re
import sys
import pipes
import tempfile
# Template values set by cuda_autoconf.
@@ -202,7 +201,6 @@ def main():
if args.x and args.x[0] == 'cuda':
if args.cuda_log: Log('-x cuda')
leftover = [pipes.quote(s) for s in leftover]
if args.cuda_log: Log('using nvcc')
return InvokeNvcc(leftover, log=args.cuda_log)