2019-03-30 14:45:36 -04:00
|
|
|
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
|
|
|
// Run "cargo build -vv" if you want to see gn output.
|
|
|
|
mod gn {
|
2019-03-30 19:27:00 -04:00
|
|
|
include!("../tools/gn.rs");
|
2019-03-30 14:45:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let build = gn::Build::setup();
|
2019-08-26 17:02:34 -04:00
|
|
|
// 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.
|
|
|
|
if !build.check_only {
|
|
|
|
build.run("cli:deno_deps");
|
|
|
|
}
|
2019-03-30 14:45:36 -04:00
|
|
|
}
|