Remove 'rust_staticlib' build template

It's not used for anything, nor are we planning to use it.
This commit is contained in:
Bert Belder 2018-08-09 02:06:17 +02:00
parent 98e8b102fd
commit 15146ad886
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461

View file

@ -83,10 +83,7 @@ template("run_rustc") {
crate_name_and_version = "$crate_name-$crate_version"
}
if (crate_type == "staticlib") {
output_file = "$target_out_dir/$crate_name_and_version.a"
emit_type = "link"
} else if (crate_type == "bin") {
if (crate_type == "bin") {
output_file = "$target_out_dir/$crate_name_and_version.o"
emit_type = "obj"
} else if (crate_type == "rlib") {
@ -246,23 +243,6 @@ template("rust_component") {
}
}
template("rust_staticlib") {
rust_component(target_name) {
forward_variables_from(invoker,
[
"cfg",
"crate_name",
"crate_version",
"extern",
"extern_version",
"features",
"source_root",
"testonly",
])
crate_type = "staticlib"
}
}
template("rust_executable") {
bin_name = target_name + "_bin"
bin_label = ":" + bin_name