[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:11:35 PDT 2025
ivanradanov wrote:
```
clang --verbose -foffload-via-llvm --cuda-path=/usr/local/cuda input.o -o a.out
```
Gives me
```
"clang-linker-wrapper" "--host-triple=x86_64-unknown-linux-gnu" "--cuda-path=/usr/local/cuda" "--linker-path=/usr/bin/ld" "-z" .....
"clang" --no-default-config -o /tmp/a.out.nvptx64.sm_89-954e0b.img --target=nvptx64-nvidia-cuda -march=sm_89 /tmp/input-nvptx64-nvidia-cuda-sm_89-945b9a.o
```
so the child of `clang-linker-wrapper` does not get the `--cuda-path`.
https://github.com/llvm/llvm-project/pull/149107
More information about the cfe-commits
mailing list