Fix PATH error with non-system GCC (#7543). (#9482)

This commit is contained in:
Michael Hofmann 2017-05-02 04:58:04 +02:00 committed by Vijay Vasudevan
parent 0cfb68cb26
commit f0faf51398

View File

@ -227,7 +227,7 @@ def InvokeNvcc(argv, log=False):
# TODO(zhengxq): for some reason, 'gcc' needs this help to find 'as'.
# Need to investigate and fix.
cmd = 'PATH=' + PREFIX_DIR + ' ' + cmd
cmd = 'PATH=' + PREFIX_DIR + ':$PATH ' + cmd
if log: Log(cmd)
return os.system(cmd)