diff options
| author | ruki <[email protected]> | 2017-05-04 15:46:37 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-05-04 15:46:37 +0800 |
| commit | b3e5d26680f6c72948b09c8156910ee580b65eb8 (patch) | |
| tree | 73f2a868644633819a860fb2c24d16b93a6996c4 /xmake | |
| parent | 31de28277a4ed502cc544a9481c2128b592e3d60 (diff) | |
avoid generate .xmake directory
Diffstat (limited to 'xmake')
| -rw-r--r-- | xmake/core/main.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua index 8dda0a491..97c77ae43 100644 --- a/xmake/core/main.lua +++ b/xmake/core/main.lua @@ -180,7 +180,9 @@ function main.done() end -- save command lines to history - history.save("cmdlines", option.cmdline()) + if os.isfile(xmake._PROJECT_FILE) then + history.save("cmdlines", option.cmdline()) + end -- run task ok, errors = task.run(option.taskname() or "build") |
