diff options
| author | ruki <[email protected]> | 2018-01-31 23:57:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-01-31 17:45:08 +0800 |
| commit | 3e77043082f8d183ca9417513bd3df28ffaaddd8 (patch) | |
| tree | 3adf9d4654ddbafc5f6cad4612cb362eca8d8016 /xmake/core/main.lua | |
| parent | 91b7ce3946a91022ddca0a3822346d81a2f1f74f (diff) | |
add working dir tips
Diffstat (limited to 'xmake/core/main.lua')
| -rw-r--r-- | xmake/core/main.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua index ca0a2ba43..a38a4fc21 100644 --- a/xmake/core/main.lua +++ b/xmake/core/main.lua @@ -195,6 +195,9 @@ function main._init() -- enter the project directory if os.isdir(os.projectdir()) then + if path.translate(os.projectdir()) ~= path.translate(os.curdir()) then + utils.warning("you are working in the project directory(%s)!", os.projectdir()) + end xmake._WORKING_DIR = os.cd(os.projectdir()) else xmake._WORKING_DIR = os.curdir() |
