diff options
author | Joseph Huber <huberjn@outlook.com> | 2025-02-06 10:42:15 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-06 10:42:15 -0600 |
commit | 2e18c94ad17e53d4c594baaf6bfd40460ceebc1e (patch) | |
tree | 0dcc2546a8c67e513bcdc4cb5ce315b92cefc13c /clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp | |
parent | 17952b3d161dd00d2cab9390672ff0556d63e6da (diff) | |
download | llvm-2e18c94ad17e53d4c594baaf6bfd40460ceebc1e.zip llvm-2e18c94ad17e53d4c594baaf6bfd40460ceebc1e.tar.gz llvm-2e18c94ad17e53d4c594baaf6bfd40460ceebc1e.tar.bz2 |
[Clang] Forward arguments to the device compiler better (#125957)
Summary:
Currently we have a subset of arguments that are handled specially to
keep them consistent between host and device compiles, however, this is
extremely hacky as it only works on a few predetermined options. This is
a holdover from the days before the linker wrapper shuttled all of its
arguments through `clang`. Now that we just use clang, all we need to do
is just use the `--device-compiler=` option to forward it there and let
the normal toolchain handle it.
For example,
```console
clang -fopenmp --offload-arch=gfx1030,sm_89 -Xarch_nvptx64 -O3 -foffload-lto
```
will forward the `-O3` to the LTO compilation only for the NVPTX
compilation.
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp')
0 files changed, 0 insertions, 0 deletions