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

tools: use os.symlink(vexe, vsymlink) on Windows too (#17838)

This commit is contained in:
Delyan Angelov 2023-04-01 08:18:24 +03:00 committed by GitHub
parent fedf0f7939
commit e56e4b3e90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,7 @@ fn setup_symlink_windows(vexe string) {
}
}
// First, try to create a native symlink at .\.bin\v.exe
os.symlink(vsymlink, vexe) or {
os.symlink(vexe, vsymlink) or {
// typically only fails if you're on a network drive (VirtualBox)
// do batch file creation instead
eprintln('Could not create a native symlink: ${err}')
@ -121,7 +121,7 @@ fn setup_symlink_windows(vexe string) {
new_paths << p
}
}
new_sys_env_path := new_paths.join(';')
new_sys_env_path := new_paths.join(os.path_delimiter)
if new_sys_env_path == sys_env_path {
println('System %PATH% was already configured.')
} else {