summaryrefslogtreecommitdiff
path: root/xmake/includes/check
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-03 00:41:08 +0800
committerruki <[email protected]>2023-11-03 00:41:08 +0800
commitc63207ba0564b1ad87b7d31df738da26c421e796 (patch)
tree2aef463a92deff57a071de5bf4b3a12c3633ebe6 /xmake/includes/check
parentd92d8ad1fda4d9605d08ae4c44271d9273642a93 (diff)
add check_sizeof for target
Diffstat (limited to 'xmake/includes/check')
-rw-r--r--xmake/includes/check/check_sizeof.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/includes/check/check_sizeof.lua b/xmake/includes/check/check_sizeof.lua
index 57db09205..f04efa566 100644
--- a/xmake/includes/check/check_sizeof.lua
+++ b/xmake/includes/check/check_sizeof.lua
@@ -65,12 +65,12 @@ function check_sizeof(definition, typename, opt)
interp_save_scope()
option(optname)
set_showmenu(false)
- add_csnippets(definition, check_sizeof_template:gsub('${TYPE}', typename), {binary_match = _binary_match})
+ add_cxxsnippets(definition, check_sizeof_template:gsub('${TYPE}', typename), {binary_match = _binary_match})
if opt.links then
add_links(opt.links)
end
if opt.includes then
- add_cincludes(opt.includes)
+ add_cxxincludes(opt.includes)
end
if opt.languages then
set_languages(opt.languages)
@@ -114,7 +114,7 @@ function configvar_check_sizeof(definition, typename, opt)
interp_save_scope()
option(optname)
set_showmenu(false)
- add_csnippets(definition, check_sizeof_template:gsub('${TYPE}', typename), {binary_match = _binary_match})
+ add_cxxsnippets(definition, check_sizeof_template:gsub('${TYPE}', typename), {binary_match = _binary_match})
if opt.default == nil then
set_configvar(defname, defval or 1, {quote = opt.quote})
end
@@ -122,7 +122,7 @@ function configvar_check_sizeof(definition, typename, opt)
add_links(opt.links)
end
if opt.includes then
- add_cincludes(opt.includes)
+ add_cxxincludes(opt.includes)
end
if opt.languages then
set_languages(opt.languages)