mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
@VMODULE relative paths in #flag lines
This commit is contained in:
@ -243,6 +243,7 @@ fn (p mut Parser) chash() {
|
||||
if p.first_pass() {
|
||||
mut flag := hash[5..]
|
||||
// expand `@VROOT` `@VMOD` to absolute path
|
||||
flag = flag.replace('@VMODULE', p.file_path_dir)
|
||||
flag = flag.replace('@VROOT', p.vroot)
|
||||
flag = flag.replace('@VPATH', p.pref.vpath)
|
||||
flag = flag.replace('@VLIB_PATH', p.pref.vlib_path)
|
||||
|
Reference in New Issue
Block a user