Fix intrinsic-test author handling.

CARGO_PKG_AUTHORS is :-separated.

Also add myself to intrinsic-test authors.
This commit is contained in:
Jacob Bramley 2023-05-19 16:49:41 +01:00 committed by Amanieu d'Antras
parent 05afebca4d
commit 7f2a7c09ef
2 changed files with 6 additions and 3 deletions

View file

@ -3,7 +3,8 @@ name = "intrinsic-test"
version = "0.1.0"
authors = ["Jamie Cunliffe <Jamie.Cunliffe@arm.com>",
"James McGregor <James.McGregor2@arm.com",
"Adam Gemmell <Adam.Gemmell@arm.com"]
"Adam Gemmell <Adam.Gemmell@arm.com",
"Jacob Bramley <jacob.bramley@arm.com>"]
license = "MIT OR Apache-2.0"
edition = "2021"

View file

@ -266,7 +266,7 @@ fn build_rust(notices: &str, intrinsics: &[Intrinsic], toolchain: &str, a32: boo
r#"[package]
name = "intrinsic-test-programs"
version = "{version}"
authors = ["{authors}"]
authors = [{authors}]
license = "{license}"
edition = "2018"
[workspace]
@ -274,7 +274,9 @@ edition = "2018"
core_arch = {{ path = "../crates/core_arch" }}
{binaries}"#,
version = env!("CARGO_PKG_VERSION"),
authors = env!("CARGO_PKG_AUTHORS"),
authors = env!("CARGO_PKG_AUTHORS")
.split(":")
.format_with(", ", |author, fmt| fmt(&format_args!("\"{author}\""))),
license = env!("CARGO_PKG_LICENSE"),
binaries = intrinsics
.iter()