[clang] [clang-linker-wrapper] Pass on --cuda-path to child clang processes (PR #149107)
Ivan R. Ivanov via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 16 08:02:11 PDT 2025
ivanradanov wrote:
I see. I was doing this
```
clang -foffload-via-llvm --cuda-path=/usr/local/cuda input.o -o a.out
```
which only passes `--cuda-path` to `clang-linker-wrapper` directly:
```
"clang-linker-wrapper" ... "--cuda-path=/usr/local/cuda" ...
```
I suppose under the current infra, all the offloading compilation arguments need to be present when linking as well, so as to invoke the appropriate toolchains, and the above usage is not recommended?
https://github.com/llvm/llvm-project/pull/149107
More information about the cfe-commits
mailing list