[clang] [Clang] Forward arguments to the device compiler better (PR #125957)

Ye Luo via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 5 16:05:19 PST 2025


ye-luo wrote:

What is the rule of propagation? It is not immediately clear to me
```
clang -fopenmp --offload-arch=gfx1030,sm_89 -Xarch_nvptx64 -O3 -foffload-lto
```
`-foffload-lto` is an argument to `-Xarch_nvptx64` instead of `clang`.

https://github.com/llvm/llvm-project/pull/125957


More information about the cfe-commits mailing list