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

compiler: realpath before trying to basefilename

This commit is contained in:
Emily Hudson 2019-11-30 05:01:31 +00:00 committed by Alexander Medvednikov
parent 850788c4bb
commit 661ddf3d1e

View File

@ -17,5 +17,5 @@ pub fn get_vtmp_folder() string {
pub fn get_vtmp_filename(base_file_name string, postfix string) string {
vtmp := get_vtmp_folder()
return os.realpath( filepath.join(vtmp, os.filename( base_file_name ) + postfix) )
return os.realpath( filepath.join(vtmp, os.filename( os.realpath(base_file_name) ) + postfix) )
}