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

compiler: add -vpath and -vlib_path options

This commit is contained in:
gabixdev
2019-11-21 13:06:19 +01:00
committed by Alexander Medvednikov
parent 00365b082f
commit 76cd70c232
3 changed files with 37 additions and 14 deletions

View File

@ -205,6 +205,8 @@ fn (p mut Parser) chash() {
mut flag := hash[5..]
// expand `@VROOT` `@VMOD` to absolute path
flag = flag.replace('@VROOT', p.vroot)
flag = flag.replace('@VPATH', p.pref.vpath)
flag = flag.replace('@VLIB_PATH', p.pref.vlib_path)
flag = flag.replace('@VMOD', v_modules_path)
//p.log('adding flag "$flag"')
_ = p.table.parse_cflag(flag, p.mod) or {