[lldb] [pstl] [llvm] [mlir] [libc] [compiler-rt] [libcxx] [openmp] [clang-tools-extra] [clang] [lld] [Driver] Test ignored target-specific options for AMDGPU/NVPTX (PR #79222)

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 24 09:23:27 PST 2024


================
@@ -0,0 +1,5 @@
+/// Some target-specific options are ignored for GPU, so %clang exits with code 0.
+// DEFINE: %{check} = %clang -### -c -mcmodel=medium
----------------
Artem-B wrote:

> Also, what exactly are we checking here? With `-###` CC1 sub-compilations do not run and, I think, that's where unsupported options were triggering warning/errors.

We're still only running the top-level driver. Weren't errors reported by cc1 compilation?



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


More information about the cfe-commits mailing list