Merge pull request #40941 from fo40225:fix-nvcc-compiler-options
PiperOrigin-RevId: 319056293 Change-Id: Ieb9a9aa1da889c8c9be53d2f9ac9a8b01842be9d
This commit is contained in:
commit
4f5ffbca7f
@ -158,7 +158,7 @@ def InvokeNvcc(argv, log=False):
|
||||
nvccopts += defines
|
||||
nvccopts += m_options
|
||||
nvccopts += fatbin_options
|
||||
nvccopts += ['--compiler-options="' + " ".join(host_compiler_options) + '"']
|
||||
nvccopts += ['--compiler-options=' + ",".join(host_compiler_options)]
|
||||
nvccopts += ['-x', 'cu'] + opt + includes + out + ['-c'] + src_files
|
||||
# Specify a unique temp directory for nvcc to generate intermediate files,
|
||||
# then Bazel can ignore files under NVCC_TEMP_DIR during dependency check
|
||||
|
Loading…
x
Reference in New Issue
Block a user