diff options
| author | ruki <[email protected]> | 2019-07-26 22:19:02 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-07-26 07:54:17 +0800 |
| commit | 6ef33a04fafe3a4b2ec757abcffb46ce5e7488ec (patch) | |
| tree | 68a36f17ca80972fa33e7d90322510fd18067a9e /xmake/actions/build/main.lua | |
| parent | dd488ffd6dc1ec44b3d0c38a9dfd5f0ca99d6d2f (diff) | |
lock the whole project for some actions
Diffstat (limited to 'xmake/actions/build/main.lua')
| -rw-r--r-- | xmake/actions/build/main.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/actions/build/main.lua b/xmake/actions/build/main.lua index f9446db68..977b1a304 100644 --- a/xmake/actions/build/main.lua +++ b/xmake/actions/build/main.lua @@ -38,6 +38,9 @@ function main() return trybuild() end + -- lock the whole project + project.filelock():lock() + -- get the target name local targetname = option.get("target") @@ -79,6 +82,9 @@ function main() } } + -- unlock the whole project + project.filelock():unlock() + -- leave project directory os.cd(oldir) |
