diff options
| author | ruki <[email protected]> | 2016-06-15 11:46:47 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-06-15 11:46:47 +0800 |
| commit | 0393ff118a61d3f5fc87e02df3752f28db5e8626 (patch) | |
| tree | d4ec8e36869154f6e6629cd32e4737db75cc5ed8 /xmake/core/project/project.lua | |
| parent | cfd9db015cbb79b047280d0acfad5950530d4158 (diff) | |
remove on_check and deps for option
Diffstat (limited to 'xmake/core/project/project.lua')
| -rw-r--r-- | xmake/core/project/project.lua | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua index 948eab3a8..e30d751ef 100644 --- a/xmake/core/project/project.lua +++ b/xmake/core/project/project.lua @@ -520,28 +520,6 @@ function project._interpreter() return interp end --- check option -function project._check(options, opt) - - -- exists the dependent options? - for _, dep in ipairs(table.wrap(opt:get("deps"))) do - - -- get the dependent option - opt = options[dep] - - -- no this option? - if not opt then - os.raise("invalid dependent option: %s", dep) - end - - -- check this dependent option - project._check(options, opt) - end - - -- check option - opt:check() -end - -- get the project directory function project.directory() @@ -569,7 +547,7 @@ function project.check() -- check all options for _, opt in pairs(options) do - project._check(options, opt) + opt:check() end -- leave toolchains environment |
