diff options
| author | ruki <[email protected]> | 2015-06-04 11:06:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-04 11:06:33 +0800 |
| commit | e93e932433483348664804a0cc054b2c6af61a95 (patch) | |
| tree | 25bb8afda99c26c7082f5b2046e79702644405d4 /xmake/scripts/base/main.lua | |
| parent | 282c12b8f7b9b01a85844326c28f6bc3529aa088 (diff) | |
load platform from the project and global configure directory
Diffstat (limited to 'xmake/scripts/base/main.lua')
| -rw-r--r-- | xmake/scripts/base/main.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/xmake/scripts/base/main.lua b/xmake/scripts/base/main.lua index 830a958d6..2624c8d53 100644 --- a/xmake/scripts/base/main.lua +++ b/xmake/scripts/base/main.lua @@ -573,7 +573,13 @@ end -- the main function function main.done() - -- init option first + -- init project directory first + local projectdir = option.find(xmake._ARGV, "project", "P") + if projectdir then + xmake._PROJECT_DIR = path.absolute(projectdir) + end + + -- init option if not option.init(xmake._ARGV, menu) then return -1 end |
