mirror of
https://github.com/denoland/deno.git
synced 2024-11-25 15:29:32 -05:00
20 lines
566 B
Rust
20 lines
566 B
Rust
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
|
// Run "cargo build -vv" if you want to see gn output.
|
|
mod gn {
|
|
include!("../tools/gn.rs");
|
|
}
|
|
|
|
fn main() {
|
|
let build = gn::Build::setup();
|
|
|
|
let gn_target = if build.check_only {
|
|
// When RLS is running "cargo check" to analyze the source code, we're not
|
|
// trying to build a working executable, rather we're just compiling all
|
|
// rust code. Therefore, make ninja build only 'msg_generated.rs'.
|
|
"cli:msg_rs"
|
|
} else {
|
|
"cli:deno_deps"
|
|
};
|
|
|
|
build.run(gn_target);
|
|
}
|