From 00f34ec89f7735b45a3ecdb55f0952d545d73cbb Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 22 Apr 2020 23:50:51 +0800 Subject: pass engine name --- xmake/core/project/config.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/core/project/config.lua') diff --git a/xmake/core/project/config.lua b/xmake/core/project/config.lua index a7e474338..49d093663 100644 --- a/xmake/core/project/config.lua +++ b/xmake/core/project/config.lua @@ -142,14 +142,14 @@ end -- get the configure file function config.filepath() - return path.join(config.directory(), "xmake.conf") + return path.join(config.directory(), xmake._NAME .. ".conf") end -- get the configure directory on the current host/arch platform function config.directory() if config._DIRECTORY == nil then local rootdir = os.getenv("XMAKE_CONFIGDIR") or os.projectdir() - config._DIRECTORY = path.join(rootdir, ".xmake", os.host(), os.arch()) + config._DIRECTORY = path.join(rootdir, "." .. xmake._NAME, os.host(), os.arch()) end return config._DIRECTORY end -- cgit v1.3.1