diff options
| author | ruki <[email protected]> | 2019-06-08 00:32:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-06-07 21:15:09 +0800 |
| commit | e165a8e43abed4eb2eca64c3b5adefb57cd65600 (patch) | |
| tree | 1ee3cfd81d44905a51cf089761f0020bcb2c32fc | |
| parent | 7021c6e06c49f78ee948c69c51322fa64071a1b0 (diff) | |
fix warning for lua plugin
| -rw-r--r-- | xmake/actions/config/main.lua | 8 | ||||
| -rw-r--r-- | xmake/core/main.lua | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/xmake/actions/config/main.lua b/xmake/actions/config/main.lua index dfd6f8e53..611ecaf1a 100644 --- a/xmake/actions/config/main.lua +++ b/xmake/actions/config/main.lua @@ -157,6 +157,14 @@ function main() end end + -- enter the project directory + if os.isdir(os.projectdir()) then + if path.translate(os.projectdir()) ~= path.translate(os.workingdir()) then + utils.warning([[You are working in the project directory(%s) and you can also +force to build in current directory via run `xmake -P .`]], os.projectdir()) + end + end + -- enter menu config if option.get("menu") then menuconf_show() diff --git a/xmake/core/main.lua b/xmake/core/main.lua index 5659929d4..6d147ff94 100644 --- a/xmake/core/main.lua +++ b/xmake/core/main.lua @@ -150,10 +150,6 @@ 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) and you can also -force to build in current directory via run `xmake -P .`]], os.projectdir()) - end xmake._WORKING_DIR = os.cd(os.projectdir()) else xmake._WORKING_DIR = os.curdir() |
