summaryrefslogtreecommitdiff
path: root/xmake/core/_xmake_main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-05-24 22:39:18 +0800
committerruki <[email protected]>2019-05-24 09:55:52 +0800
commite2b3965574e574fafbd76d89ee6f5d18ca1265cd (patch)
tree93b2c178991b11bf61efa049842a935cbbd15e78 /xmake/core/_xmake_main.lua
parent18135dbc217d1ab00baf4544ddf73564a723e388 (diff)
fix loadfile
Diffstat (limited to 'xmake/core/_xmake_main.lua')
-rw-r--r--xmake/core/_xmake_main.lua3
1 files changed, 3 insertions, 0 deletions
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]