Skip to content

Ninja: Do not use nvcc response files with non-nvcc tools

Francisco Facioni requested to merge fran6co/cmake:fran6co/fix_cuda_link into master

Since !3399 (merged) we use NVCC's --options-file option to avoid long link command lines via a response file. However, for non-device linking the host tools are used and the option does not make sense. Update the logic to use --options-file only for device linking. Linking with the host tools already has its own logic for response files.

Fixes: #19954 (closed)
Backport: release
Topic-rename: cuda-non-device-link

Edited by Brad King

Merge request reports

Loading