summaryrefslogtreecommitdiff
path: root/xmake/core/project/option.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-07-05 20:48:55 +0800
committerruki <[email protected]>2017-07-05 20:48:55 +0800
commit6e0271d2e38f9b4d48ec271af225f71a0faa4f49 (patch)
tree3411187f6d73ad5d0e254aa9d681ea94e7ce9915 /xmake/core/project/option.lua
parenta8d5da851d1d469587adea086c65d61ae20c50ef (diff)
rename has_cxsnippets to check_vxsnippets
Diffstat (limited to 'xmake/core/project/option.lua')
-rw-r--r--xmake/core/project/option.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/project/option.lua b/xmake/core/project/option.lua
index 501f9ce69..e7231de8b 100644
--- a/xmake/core/project/option.lua
+++ b/xmake/core/project/option.lua
@@ -58,8 +58,8 @@ end
-- check option for c/c++
function option:_cx_check()
- -- import has_cxsnippets()
- self._has_cxsnippets = self._has_cxsnippets or import("lib.detect.has_cxsnippets")
+ -- import check_cxsnippets()
+ self._check_cxsnippets = self._check_cxsnippets or import("lib.detect.check_cxsnippets")
-- check for c and c++
for _, kind in ipairs({"c", "cxx"}) do
@@ -81,7 +81,7 @@ function option:_cx_check()
end
-- check it
- local ok, results_or_errors = sandbox.load(self._has_cxsnippets, snippets, {target = self, sourcekind = sourcekind, types = types, funcs = funcs, includes = includes})
+ local ok, results_or_errors = sandbox.load(self._check_cxsnippets, snippets, {target = self, sourcekind = sourcekind, types = types, funcs = funcs, includes = includes})
if not ok then
return false, results_or_errors
end