1
0
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:
Delyan Angelov
2020-02-06 18:38:35 +02:00
committed by GitHub
parent 67a13fc916
commit 2ce6b190dd
8 changed files with 42 additions and 0 deletions

View File

@ -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)