1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os, filepath: reorganize functions

This commit is contained in:
Alexey
2019-12-23 13:09:22 +03:00
committed by Alexander Medvednikov
parent 6e130cd446
commit dced76d1a4
28 changed files with 174 additions and 98 deletions

View File

@@ -3,8 +3,11 @@
// that can be found in the LICENSE file.
module compiler
import os
import strings
import (
os
strings
filepath
)
struct CGen {
out os.File
@@ -275,7 +278,7 @@ fn build_thirdparty_obj_file(path string, moduleflags []CFlag) {
return
}
println('$obj_path not found, building it...')
parent := os.dir(obj_path)
parent := filepath.dir(obj_path)
files := os.ls(parent)or{
panic(err)
}