Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod committed May 3, 2020
1 parent eb820d6 commit 4596331
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugin/src/main/kotlin/com/nishtahir/CargoBuildTask.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,9 @@ open class CargoBuildTask : DefaultTask() {
if (targetIncludes != null) {
spec.include(targetIncludes.asIterable())
} else {
// It's safe to unwrap, since we bailed at configuration time if this is unset.
val libname = libname!!
spec.include("lib${libname}.so")
spec.include("lib${libname}.dylib")
spec.include("${libname}.dll")
spec.include(libname!!)
}
rename { filename -> "lib$filename.so" }
}
}
}
Expand Down

0 comments on commit 4596331

Please sign in to comment.