0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-30 09:08:00 -04:00
denoland-deno/build_extra/rust/BUILD.gn
Ryan Dahl e269d972d2 Move libc build def to //build_extra/rust
This is preperation for adding many more third_party crates.
2018-07-09 16:50:33 -04:00

23 lines
541 B
Text

import("rust.gni")
# By compiling an empty file as crate-type=staticlib we get all the code
# for the rust stdlib, which are not included in the object file outputs
# of other libs.
rust_component("stdlib") {
crate_type = "staticlib"
source_root = "empty.rs"
if (current_os == "mac") {
libs = [ "resolv" ]
}
if (current_os == "win") {
libs = [ "userenv.lib" ]
}
}
rust_component("libc") {
source_root = "//third_party/rust_crates/libc/src/lib.rs"
cfg = [
"feature=\"default\"",
"feature=\"use_std\"",
]
}