v.builder: add a clearer error message for v -shared run empty.v (issue found by Felipe Pena)

This commit is contained in:
Delyan Angelov 2025-07-25 15:14:59 +03:00
parent 6fb46cc30f
commit 38beb23c6a
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -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(' ')