]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: support arrays in target JSON
authorMatthew Maurer <mmaurer@google.com>
Tue, 30 Jul 2024 09:26:24 +0000 (09:26 +0000)
committerMiguel Ojeda <ojeda@kernel.org>
Fri, 23 Aug 2024 04:25:59 +0000 (06:25 +0200)
commitc6945acad7a14b6afb390a4afc1d354ef5413ea6
treeaca94831be93f1de0136d2d8a5a58855a4b3c64e
parent6d1c22d0ace31d096b0dab5318c6a0d3219d6456
rust: support arrays in target JSON

Some configuration options such as the supported sanitizer list are
arrays. To support using Rust with sanitizers on x86, we must update the
target.json generator to support this case.

The Push trait is removed in favor of the From trait because the Push
trait doesn't work well in the nested case where you are not really
pushing values to a TargetSpec.

Signed-off-by: Matthew Maurer <mmaurer@google.com>
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Tested-by: Gatlin Newhouse <gatlin.newhouse@gmail.com>
Link: https://lore.kernel.org/r/20240730-target-json-arrays-v1-1-2b376fd0ecf4@google.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
scripts/generate_rust_target.rs