mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
live: always add os and time when compiling -live programs
Fixes fail when -live user programs do not use os and time.
This commit is contained in:

committed by
Alexander Medvednikov

parent
7ffa315566
commit
f68d9d1a16
9
vlib/compiler/preludes/live_main.v
Normal file
9
vlib/compiler/preludes/live_main.v
Normal file
@ -0,0 +1,9 @@
|
||||
module main
|
||||
|
||||
import os
|
||||
import time
|
||||
|
||||
const (
|
||||
os_used = os.MAX_PATH
|
||||
time_used = time.now()
|
||||
)
|
9
vlib/compiler/preludes/live_shared.v
Normal file
9
vlib/compiler/preludes/live_shared.v
Normal file
@ -0,0 +1,9 @@
|
||||
module main
|
||||
|
||||
import os
|
||||
import time
|
||||
|
||||
const (
|
||||
os_used = os.MAX_PATH
|
||||
time_used = time.now()
|
||||
)
|
Reference in New Issue
Block a user