From e2b3965574e574fafbd76d89ee6f5d18ca1265cd Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 24 May 2019 22:39:18 +0800 Subject: fix loadfile --- xmake/core/_xmake_main.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xmake/core/_xmake_main.lua b/xmake/core/_xmake_main.lua index 7833e1687..3246b1b57 100644 --- a/xmake/core/_xmake_main.lua +++ b/xmake/core/_xmake_main.lua @@ -35,6 +35,9 @@ local _loadfile = _loadfile or loadfile local _loadcache = {} function loadfile(filepath) + -- get absolute path + filepath = path.absolute(filepath) + -- attempt to load script from cache first local mtime = nil local cache = _loadcache[filepath] -- cgit v1.3.1