mirror of
https://github.com/vlang/v.git
synced 2025-08-03 09:47:15 -04:00
v.builder: add a clearer error message for v -shared run empty.v
(issue found by Felipe Pena)
This commit is contained in:
parent
6fb46cc30f
commit
38beb23c6a
@ -137,6 +137,9 @@ fn (mut b Builder) run_compiled_executable_and_exit() {
|
||||
if b.pref.is_verbose {
|
||||
println('running ${run_file} with arguments ${run_args.join(' ')}')
|
||||
}
|
||||
if b.pref.is_shared {
|
||||
verror('can not run shared library ${run_file}')
|
||||
}
|
||||
mut ret := 0
|
||||
if b.pref.use_os_system_to_run {
|
||||
command_to_run := os.quoted_path(run_file) + ' ' + run_args.join(' ')
|
||||
|
Loading…
x
Reference in New Issue
Block a user