diff options
| author | ruki <[email protected]> | 2019-05-24 22:39:18 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-05-24 09:55:52 +0800 |
| commit | e2b3965574e574fafbd76d89ee6f5d18ca1265cd (patch) | |
| tree | 93b2c178991b11bf61efa049842a935cbbd15e78 /xmake | |
| parent | 18135dbc217d1ab00baf4544ddf73564a723e388 (diff) | |
fix loadfile
Diffstat (limited to 'xmake')
| -rw-r--r-- | xmake/core/_xmake_main.lua | 3 |
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] |
