summaryrefslogtreecommitdiff
path: root/build_extra/rust/rust.gni
diff options
context:
space:
mode:
Diffstat (limited to 'build_extra/rust/rust.gni')
-rw-r--r--build_extra/rust/rust.gni22
1 files changed, 1 insertions, 21 deletions
diff --git a/build_extra/rust/rust.gni b/build_extra/rust/rust.gni
index f37d235e6..21b397282 100644
--- a/build_extra/rust/rust.gni
+++ b/build_extra/rust/rust.gni
@@ -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