Skip to content

Commit 4596331

Browse files
committed
Fix #30
1 parent eb820d6 commit 4596331

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

plugin/src/main/kotlin/com/nishtahir/CargoBuildTask.kt

+2-5
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,9 @@ open class CargoBuildTask : DefaultTask() {
5858
if (targetIncludes != null) {
5959
spec.include(targetIncludes.asIterable())
6060
} else {
61-
// It's safe to unwrap, since we bailed at configuration time if this is unset.
62-
val libname = libname!!
63-
spec.include("lib${libname}.so")
64-
spec.include("lib${libname}.dylib")
65-
spec.include("${libname}.dll")
61+
spec.include(libname!!)
6662
}
63+
rename { filename -> "lib$filename.so" }
6764
}
6865
}
6966
}

0 commit comments

Comments
 (0)