mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib: filepath module
This commit is contained in:

committed by
Alexander Medvednikov

parent
fe9d884d90
commit
7b1993b1e4
@ -7,6 +7,7 @@ module compiler
|
||||
import (
|
||||
os
|
||||
time
|
||||
filepath
|
||||
)
|
||||
|
||||
fn todo() {
|
||||
@ -152,7 +153,7 @@ fn (v mut V) cc() {
|
||||
a << '-c'
|
||||
}
|
||||
else if v.pref.is_cache {
|
||||
builtin_o_path := os.join(v_modules_path, 'cache', 'vlib', 'builtin.o')
|
||||
builtin_o_path := filepath.join(v_modules_path, 'cache', 'vlib', 'builtin.o')
|
||||
a << builtin_o_path.replace('builtin.o', 'strconv.o') // TODO hack no idea why this is needed
|
||||
if os.file_exists(builtin_o_path) {
|
||||
libs = builtin_o_path
|
||||
|
@ -7,6 +7,7 @@ module compiler
|
||||
import (
|
||||
os
|
||||
strings
|
||||
filepath
|
||||
)
|
||||
|
||||
pub const (
|
||||
@ -650,11 +651,11 @@ pub fn (v &V) get_user_files() []string {
|
||||
mut user_files := []string
|
||||
|
||||
if v.pref.is_test {
|
||||
user_files << os.join(v.vroot,'vlib','compiler','preludes','tests_assertions.v')
|
||||
user_files << filepath.join(v.vroot,'vlib','compiler','preludes','tests_assertions.v')
|
||||
}
|
||||
|
||||
if v.pref.is_test && v.pref.is_stats {
|
||||
user_files << os.join(v.vroot,'vlib','compiler','preludes','tests_with_stats.v')
|
||||
user_files << filepath.join(v.vroot,'vlib','compiler','preludes','tests_with_stats.v')
|
||||
}
|
||||
|
||||
// v volt/slack_test.v: compile all .v files to get the environment
|
||||
|
Reference in New Issue
Block a user