summaryrefslogtreecommitdiff
path: root/xmake/includes/check_cfuncs.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-02-12 22:42:08 +0800
committerruki <[email protected]>2019-02-12 10:12:48 +0800
commit960c3dc469aaa27746c0a2174f235bd32ce390ff (patch)
tree04a5aec448b8624302c46cb01719f1d260694785 /xmake/includes/check_cfuncs.lua
parentd7194331ea134b0e1b54a5e09a59824b9c399d83 (diff)
improve check_xxx
Diffstat (limited to 'xmake/includes/check_cfuncs.lua')
-rw-r--r--xmake/includes/check_cfuncs.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/includes/check_cfuncs.lua b/xmake/includes/check_cfuncs.lua
index 5769976ff..aaa30f28d 100644
--- a/xmake/includes/check_cfuncs.lua
+++ b/xmake/includes/check_cfuncs.lua
@@ -56,6 +56,9 @@ function check_cfuncs(definition, funcs, opt)
if opt.cflags then
add_cxflags(opt.cxflags)
end
+ if opt.defines then
+ add_defines(opt.defines)
+ end
option_end()
add_options(optname)
end
@@ -88,6 +91,9 @@ function configvar_check_cfuncs(definition, funcs, opt)
if opt.cxflags then
add_cxflags(opt.cxflags)
end
+ if opt.defines then
+ add_defines(opt.defines)
+ end
option_end()
add_options(optname)
end