Return Err if target don't support dylib (fix #2427)
Return Err if target don't support dylib (fix #2427)

tsurai/cargo,achanda/cargo,tshepang/cargo,sbeckeriv/cargo,AndiDog/cargo,rust-lang/cargo,brson/cargo,tsurai/cargo,mark-buer/cargo,rustyhorde/cargo,mark-buer/cargo,vojtechkral/cargo,tsurai/cargo,eminence/cargo,sbeckeriv/cargo,durka/cargo,achanda/cargo,achanda/cargo,nipunn1313/cargo,eminence/cargo,eminence/cargo,brson/cargo,rust-lang/cargo,brson/cargo,mark-buer/cargo,durka/cargo,mark-buer/cargo,nipunn1313/cargo,rustyhorde/cargo,AndiDog/cargo,AndiDog/cargo,tsurai/cargo,AndiDog/cargo,durka/cargo,nipunn1313/cargo,sbeckeriv/cargo,vojtechkral/cargo,AndiDog/cargo,durka/cargo,tshepang/cargo,rust-lang/cargo,sbeckeriv/cargo,tshepang/cargo,nipunn1313/cargo,brson/cargo,tshepang/cargo,vojtechkral/cargo,mark-buer/cargo,vojtechkral/cargo,rustyhorde/cargo,rustyhorde/cargo,eminence/cargo,brson/cargo,tsurai/cargo,achanda/cargo,rust-lang/cargo