summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts/base/main.lua')
-rw-r--r--xmake/scripts/base/main.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/scripts/base/main.lua b/xmake/scripts/base/main.lua
index 811f0a650..ff4ddfaac 100644
--- a/xmake/scripts/base/main.lua
+++ b/xmake/scripts/base/main.lua
@@ -271,7 +271,9 @@ function main._done_option()
-- init the xmake.lua file path
options.file = options.file or options._DEFAULTS.file or "xmake.lua"
- options.file = path.absolute(options.file, options.project)
+ if not path.is_absolute(options.file) then
+ options.file = path.absolute(options.file, options.project)
+ end
assert(options.file)
-- load and execute the xmake.lua script of the given project