diff options
| author | ruki <[email protected]> | 2019-02-10 20:13:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-02-10 20:13:21 +0800 |
| commit | 8be63d51387bc352bddb7b891a231fdecb894344 (patch) | |
| tree | 5a800cd354b6d0dee261f0f2087537faf88fe7b7 /xmake/core/project/project.lua | |
| parent | 9a0559206f07c8cea19b63136bf0ad01ea005273 (diff) | |
improve project option
Diffstat (limited to 'xmake/core/project/project.lua')
| -rw-r--r-- | xmake/core/project/project.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua index 88da7811c..e09149a07 100644 --- a/xmake/core/project/project.lua +++ b/xmake/core/project/project.lua @@ -580,12 +580,8 @@ function project._load_options(disable_filter) local options = {} for optionname, optioninfo in pairs(results) do - -- init a option instance - local instance = table.inherit(option) - - -- save name and info - instance._NAME = optionname - instance._INFO = optioninfo + -- init an option instance + local instance = option.new(optionname, optioninfo) -- save it options[optionname] = instance |
