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

os: use path separator more consistently

This commit is contained in:
Delyan Angelov
2019-09-11 01:08:23 +03:00
committed by Alexander Medvednikov
parent 08262b5c43
commit a53c69de38
2 changed files with 8 additions and 5 deletions

View File

@ -790,6 +790,9 @@ fn new_v(args[]string) &V {
}
}
rdir := os.realpath( dir )
rdir_name := os.filename( rdir )
obfuscate := args.contains('-obf')
is_repl:=args.contains('-repl')
pref := &Preferences {
@ -812,7 +815,7 @@ fn new_v(args[]string) &V {
build_mode: build_mode
cflags: cflags
ccompiler: find_c_compiler()
building_v: !is_repl && (dir == 'compiler' ||
building_v: !is_repl && (rdir_name == 'compiler' ||
dir.contains('v/vlib'))
}
if pref.is_verbose || pref.is_debug {