mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix "v symlink" with relative paths
This commit is contained in:

committed by
Alexander Medvednikov

parent
8e32ef382a
commit
dcea76ff41
@@ -29,7 +29,7 @@ mut:
|
||||
// `mod` == "vlib/os"
|
||||
fn generate_vh(mod string) {
|
||||
println('\n\n\n\nGenerating a V header file for module `$mod`')
|
||||
vexe := os.executable()
|
||||
vexe := vexe_path()
|
||||
full_mod_path := filepath.join(os.dir(vexe), mod)
|
||||
dir := if mod.starts_with('vlib') { '$compiler.v_modules_path${os.path_separator}$mod' } else { mod }
|
||||
path := dir + '.vh'
|
||||
|
Reference in New Issue
Block a user