mirror of
https://github.com/denoland/deno.git
synced 2024-12-28 10:09:20 -05:00
16 lines
385 B
Text
16 lines
385 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" ]
|
||
|
}
|
||
|
}
|