summaryrefslogtreecommitdiff
path: root/xmake/actions/config/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-07-26 22:19:02 +0800
committerruki <[email protected]>2019-07-26 07:54:17 +0800
commit6ef33a04fafe3a4b2ec757abcffb46ce5e7488ec (patch)
tree68a36f17ca80972fa33e7d90322510fd18067a9e /xmake/actions/config/main.lua
parentdd488ffd6dc1ec44b3d0c38a9dfd5f0ca99d6d2f (diff)
lock the whole project for some actions
Diffstat (limited to 'xmake/actions/config/main.lua')
-rw-r--r--xmake/actions/config/main.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/actions/config/main.lua b/xmake/actions/config/main.lua
index fe81929dd..86979ad5e 100644
--- a/xmake/actions/config/main.lua
+++ b/xmake/actions/config/main.lua
@@ -165,6 +165,9 @@ force to build in current directory via run `xmake -P .`]], os.projectdir())
end
end
+ -- lock the whole project
+ project.filelock():lock()
+
-- enter menu config
if option.get("menu") then
menuconf_show()
@@ -297,4 +300,7 @@ force to build in current directory via run `xmake -P .`]], os.projectdir())
-- flush config cache
configcache:flush()
+
+ -- unlock the whole project
+ project.filelock():unlock()
end