From 661ddf3d1e6069109c5990131d7ceb64b91183e4 Mon Sep 17 00:00:00 2001 From: Emily Hudson Date: Sat, 30 Nov 2019 05:01:31 +0000 Subject: [PATCH] compiler: realpath before trying to basefilename --- vlib/compiler/vtmp.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/compiler/vtmp.v b/vlib/compiler/vtmp.v index 1011a47dec..5797e36b89 100644 --- a/vlib/compiler/vtmp.v +++ b/vlib/compiler/vtmp.v @@ -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) ) }