summaryrefslogtreecommitdiff
path: root/xmake/actions/package/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/actions/package/main.lua')
-rw-r--r--xmake/actions/package/main.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/actions/package/main.lua b/xmake/actions/package/main.lua
index 76289e238..83a1fb9b3 100644
--- a/xmake/actions/package/main.lua
+++ b/xmake/actions/package/main.lua
@@ -217,6 +217,9 @@ function main()
raise("please run \"xmake m package %s\" instead of \"xmake p --archs=%s\"", config.get("plat"), option.get("archs"))
end
+ -- lock the whole project
+ project.filelock():lock()
+
-- get the target name
local targetname = option.get("target")
@@ -238,4 +241,7 @@ function main()
end
end
end
+
+ -- unlock the whole project
+ project.filelock():lock()
end