summaryrefslogtreecommitdiff
path: root/cli/build.rs
diff options
context:
space:
mode:
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");
+ }
}