Skip to content

Commit 38beb23

Browse files
committed
v.builder: add a clearer error message for v -shared run empty.v (issue found by Felipe Pena)
1 parent 6fb46cc commit 38beb23

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎vlib/v/builder/compile.v‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ fn (mut b Builder) run_compiled_executable_and_exit() {
137137
if b.pref.is_verbose {
138138
println('running ${run_file} with arguments ${run_args.join(' ')}')
139139
}
140+
if b.pref.is_shared {
141+
verror('can not run shared library ${run_file}')
142+
}
140143
mut ret := 0
141144
if b.pref.use_os_system_to_run {
142145
command_to_run := os.quoted_path(run_file) + ' ' + run_args.join(' ')

0 commit comments

Comments
 (0)