summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxq114 <[email protected]>2021-09-23 15:04:28 +0800
committerxq114 <[email protected]>2021-09-23 15:04:28 +0800
commit402e2093f9e7cd65b5aedc4102f9f7068beed684 (patch)
tree141aad9331c18e54597b2c3fe18e1dd1afa96c36
parent5c7843af8a07e184737bc405b3cb40677bf399fc (diff)
fix some typo
-rw-r--r--xmake/core/project/option.lua4
-rw-r--r--xmake/includes/check_cfuncs.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/project/option.lua b/xmake/core/project/option.lua
index e9a2ef20d..d74b74996 100644
--- a/xmake/core/project/option.lua
+++ b/xmake/core/project/option.lua
@@ -69,7 +69,7 @@ function _instance:_clear()
end
-- check snippets
-function _instance:_do_check_cxsnippts(snippets)
+function _instance:_do_check_cxsnippets(snippets)
-- import check_cxsnippets()
self._check_cxsnippets = self._check_cxsnippets or sandbox_module.import("lib.detect.check_cxsnippets", {anonymous = true})
@@ -220,7 +220,7 @@ end
function _instance:_do_check()
-- check snippets
- local ok, passed, errors = self:_do_check_cxsnippts()
+ local ok, passed, errors = self:_do_check_cxsnippets()
if not ok then
return false, errors
end
diff --git a/xmake/includes/check_cfuncs.lua b/xmake/includes/check_cfuncs.lua
index 337a16fac..45b80519f 100644
--- a/xmake/includes/check_cfuncs.lua
+++ b/xmake/includes/check_cfuncs.lua
@@ -49,7 +49,7 @@ function check_cfuncs(definition, funcs, opt)
if opt.cflags then
add_cflags(opt.cflags)
end
- if opt.cflags then
+ if opt.cxflags then
add_cxflags(opt.cxflags)
end
if opt.defines then