From 535c4ed0d6fe403b34593b96b7f8c25007b0c217 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 26 Oct 2020 11:23:23 +0200 Subject: [PATCH] builder: return early in run_compiled_executable_and_exit, when -check-syntax is passed --- vlib/v/builder/compile.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vlib/v/builder/compile.v b/vlib/v/builder/compile.v index c8c9ad8be2..8e5c277bff 100644 --- a/vlib/v/builder/compile.v +++ b/vlib/v/builder/compile.v @@ -78,6 +78,9 @@ fn (mut b Builder) run_compiled_executable_and_exit() { if b.pref.skip_running { return } + if b.pref.only_check_syntax { + return + } if b.pref.os == .ios && b.pref.is_ios_simulator == false { panic('Running iOS apps on physical devices is not yet supported. Please run in the simulator using the -simulator flag.') }