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

pull/6688/head
Delyan Angelov 2020-10-26 11:23:23 +02:00
parent 3f5be0f4fc
commit 535c4ed0d6
1 changed files with 3 additions and 0 deletions

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