Skip to content

Commit a7fd04c

Browse files
jacobbramleyAmanieu
authored andcommitted
Fix intrinsic-test author handling.
CARGO_PKG_AUTHORS is :-separated. Also add myself to intrinsic-test authors.
1 parent f33f566 commit a7fd04c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

crates/intrinsic-test/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name = "intrinsic-test"
33
version = "0.1.0"
44
authors = ["Jamie Cunliffe <[email protected]>",
55
"James McGregor <[email protected]",
6-
"Adam Gemmell <[email protected]"]
6+
"Adam Gemmell <[email protected]",
7+
"Jacob Bramley <[email protected]>"]
78
license = "MIT OR Apache-2.0"
89
edition = "2021"
910

crates/intrinsic-test/src/main.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -266,15 +266,17 @@ fn build_rust(notices: &str, intrinsics: &[Intrinsic], toolchain: &str, a32: boo
266266
r#"[package]
267267
name = "intrinsic-test-programs"
268268
version = "{version}"
269-
authors = ["{authors}"]
269+
authors = [{authors}]
270270
license = "{license}"
271271
edition = "2018"
272272
[workspace]
273273
[dependencies]
274274
core_arch = {{ path = "../crates/core_arch" }}
275275
{binaries}"#,
276276
version = env!("CARGO_PKG_VERSION"),
277-
authors = env!("CARGO_PKG_AUTHORS"),
277+
authors = env!("CARGO_PKG_AUTHORS")
278+
.split(":")
279+
.format_with(", ", |author, fmt| fmt(&format_args!("\"{author}\""))),
278280
license = env!("CARGO_PKG_LICENSE"),
279281
binaries = intrinsics
280282
.iter()

0 commit comments

Comments
 (0)