1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

builder: return early in run_compiled_executable_and_exit, when -check-syntax is passed

This commit is contained in:
Delyan Angelov 2020-10-26 11:23:23 +02:00
parent 3f5be0f4fc
commit 535c4ed0d6

View File

@ -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.')
}