summaryrefslogtreecommitdiff
path: root/xmake/core/project/project.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-01-07 22:50:26 +0800
committerruki <[email protected]>2019-01-07 11:02:37 +0800
commit530d13f8933458cc34b06c50dd80dee6671d1568 (patch)
tree1eeca4d905f819d5de813cff362a362897fb08ff /xmake/core/project/project.lua
parent76cf129b49dba3abd63de5610900265c63603458 (diff)
get the given option from target
Diffstat (limited to 'xmake/core/project/project.lua')
-rw-r--r--xmake/core/project/project.lua22
1 files changed, 0 insertions, 22 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua
index 31019db59..de22b200f 100644
--- a/xmake/core/project/project.lua
+++ b/xmake/core/project/project.lua
@@ -559,28 +559,6 @@ function project._load_options(disable_filter)
local options = {}
for optionname, optioninfo in pairs(results) do
- -- TODO
- -- load it from cache first (@note will discard scripts)
- --[[
- local instance = option.load(optionname)
- if instance then
-
- -- patch scripts (e.g. on_check ..)
- for k, v in pairs(optioninfo) do
- if type(v) == "function" then
- instance:set(k, v)
- end
- end
- else
-
- -- init a option instance
- instance = table.inherit(option)
-
- -- save name and info
- instance._NAME = optionname
- instance._INFO = optioninfo
- end]]
-
-- init a option instance
local instance = table.inherit(option)