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:
committed by
Alexander Medvednikov
parent
6e130cd446
commit
dced76d1a4
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user