summaryrefslogtreecommitdiff
path: root/build_extra/rust/BUILD.gn
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-07-07 19:28:23 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-07-09 16:50:33 -0400
commite269d972d2ab64418e2cdf1565c80b472fafd3b1 (patch)
treee2640862530739b6425ed10b92106ad43ad8b006 /build_extra/rust/BUILD.gn
parentc4d61accf4d19515d55a1277dee47467d44a5bbf (diff)
Move libc build def to //build_extra/rust
This is preperation for adding many more third_party crates.
Diffstat (limited to 'build_extra/rust/BUILD.gn')
-rw-r--r--build_extra/rust/BUILD.gn8
1 files changed, 8 insertions, 0 deletions
diff --git a/build_extra/rust/BUILD.gn b/build_extra/rust/BUILD.gn
index e5a4fec16..0889ad840 100644
--- a/build_extra/rust/BUILD.gn
+++ b/build_extra/rust/BUILD.gn
@@ -13,3 +13,11 @@ rust_component("stdlib") {
libs = [ "userenv.lib" ]
}
}
+
+rust_component("libc") {
+ source_root = "//third_party/rust_crates/libc/src/lib.rs"
+ cfg = [
+ "feature=\"default\"",
+ "feature=\"use_std\"",
+ ]
+}