public inbox for rust-for-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rust: Add -fdiagnostics-show-context to bindgen_skip_c_flags
@ 2025-12-17 15:00 Siddhesh Poyarekar
  2025-12-17 20:46 ` Alice Ryhl
  2025-12-17 22:40 ` [PATCH v2] " Siddhesh Poyarekar
  0 siblings, 2 replies; 8+ messages in thread
From: Siddhesh Poyarekar @ 2025-12-17 15:00 UTC (permalink / raw)
  To: rust-for-linux; +Cc: Kees Cook, Miguel Ojeda, Boqun Feng, Gary Guo

This got added with:

  7454048db27d6 ("kbuild: Enable GCC diagnostic context for value-tracking warnings")

but clang does not have this option, so avoid passing it to bindgen.

Signed-off-by: Siddhesh Poyarekar <siddhesh@gotplt.org>
---
 rust/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rust/Makefile b/rust/Makefile
index 5d357dce1704..4dcc2eff51cb 100644
--- a/rust/Makefile
+++ b/rust/Makefile
@@ -383,6 +383,7 @@ bindgen_skip_c_flags := -mno-fp-ret-in-387 -mpreferred-stack-boundary=% \
 	-fno-inline-functions-called-once -fsanitize=bounds-strict \
 	-fstrict-flex-arrays=% -fmin-function-alignment=% \
 	-fzero-init-padding-bits=% -mno-fdpic \
+	-fdiagnostics-show-context -fdiagnostics-show-context=% \
 	--param=% --param asan-% -fno-isolate-erroneous-paths-dereference
 
 # Derived from `scripts/Makefile.clang`.
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-01-06 20:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-17 15:00 [PATCH] rust: Add -fdiagnostics-show-context to bindgen_skip_c_flags Siddhesh Poyarekar
2025-12-17 20:46 ` Alice Ryhl
2025-12-17 22:41   ` Siddhesh Poyarekar
2025-12-17 22:40 ` [PATCH v2] " Siddhesh Poyarekar
2026-01-04 20:53   ` Miguel Ojeda
2026-01-05 10:58     ` Siddhesh Poyarekar
2026-01-05 23:03     ` Nathan Chancellor
2026-01-06 20:01   ` Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox