diff options
| author | ruki <[email protected]> | 2019-02-12 22:42:08 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-02-12 10:12:48 +0800 |
| commit | 960c3dc469aaa27746c0a2174f235bd32ce390ff (patch) | |
| tree | 04a5aec448b8624302c46cb01719f1d260694785 /xmake/includes/check_cfuncs.lua | |
| parent | d7194331ea134b0e1b54a5e09a59824b9c399d83 (diff) | |
improve check_xxx
Diffstat (limited to 'xmake/includes/check_cfuncs.lua')
| -rw-r--r-- | xmake/includes/check_cfuncs.lua | 6 |
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 |
