summaryrefslogtreecommitdiff
path: root/cli/build.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-08-26 17:02:34 -0400
committerGitHub <noreply@github.com>2019-08-26 17:02:34 -0400
commitf94900406d52a9d0a432ae9ebef65d46092afb41 (patch)
tree0a12b3201f8bdd0bbee1b6b1abf3f413d7d92e9f /cli/build.rs
parentd8ada4d3fcc5dfe7f76103399a1d765fbab2ee45 (diff)
Remove flatbuffers (#2818)
Diffstat (limited to 'cli/build.rs')
-rw-r--r--cli/build.rs17
1 files changed, 6 insertions, 11 deletions
diff --git a/cli/build.rs b/cli/build.rs
index 8e05b2119..55451e6b7 100644
--- a/cli/build.rs
+++ b/cli/build.rs
@@ -6,15 +6,10 @@ mod gn {
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);
+ // 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");
+ }
}