mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: cache modules if they are not built yet
This commit is contained in:
@@ -177,6 +177,7 @@ pub fn (m &map) keys() []string {
|
||||
}
|
||||
|
||||
fn (m map) get(key string, out voidptr) bool {
|
||||
//println('g')
|
||||
if m.root == 0 {
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -333,6 +333,7 @@ pub fn exec(cmd string) ?Result {
|
||||
}
|
||||
}
|
||||
|
||||
// `system` works like `exec()`, but only returns a return code.
|
||||
pub fn system(cmd string) int {
|
||||
mut ret := int(0)
|
||||
$if windows {
|
||||
|
||||
Reference in New Issue
Block a user