summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]