1
0
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:
Alexander Medvednikov
2019-10-10 22:27:22 +03:00
parent a5ccc4673b
commit e1dd4c19b5
5 changed files with 11 additions and 13 deletions

View File

@@ -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
}

View File

@@ -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 {