blob: e5a4fec16fd284b4b40726ff58090a4839f46958 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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" ]
}
}
|