about summary refs log tree commit diff
path: root/library/stdarch/crates/intrinsic-test/src
diff options
context:
space:
mode:
authorJacob Bramley <jacob.bramley@arm.com>2023-05-19 16:49:41 +0100
committerAmanieu d'Antras <amanieu@gmail.com>2023-11-01 14:33:48 +0100
commit7f2a7c09ef75b46c09a8423d578b5c1a2fa221ce (patch)
tree65f0f2c90728774ff06293136e1ebaab6c0b7253 /library/stdarch/crates/intrinsic-test/src
parent05afebca4d77cc24386195d76ff2b0ea238b5a23 (diff)
downloadrust-7f2a7c09ef75b46c09a8423d578b5c1a2fa221ce.tar.gz
rust-7f2a7c09ef75b46c09a8423d578b5c1a2fa221ce.zip
Fix intrinsic-test author handling.
CARGO_PKG_AUTHORS is :-separated.

Also add myself to intrinsic-test authors.
Diffstat (limited to 'library/stdarch/crates/intrinsic-test/src')
-rw-r--r--library/stdarch/crates/intrinsic-test/src/main.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/library/stdarch/crates/intrinsic-test/src/main.rs b/library/stdarch/crates/intrinsic-test/src/main.rs
index 42e6c3053a4..297f76951a8 100644
--- a/library/stdarch/crates/intrinsic-test/src/main.rs
+++ b/library/stdarch/crates/intrinsic-test/src/main.rs
@@ -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()