Skip to content

Commit 293f231

Browse files
Merge pull request #72 from DCNick3/fix-3dsx-naming
Use artifact.test to determine if an executable is a test one
2 parents 83788af + a899a22 commit 293f231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ pub(crate) fn get_artifact_config(package: Package, artifact: Artifact) -> CTRCo
262262
// For now, assume a single "kind" per artifact. It seems to be the case
263263
// when a single executable is built anyway but maybe not in all cases.
264264
let name = match artifact.target.kind[0].as_ref() {
265-
"bin" | "lib" | "rlib" | "dylib" if artifact.target.test => {
265+
"bin" | "lib" | "rlib" | "dylib" if artifact.profile.test => {
266266
format!("{} tests", artifact.target.name)
267267
}
268268
"example" => {

0 commit comments

Comments
 (0)