diff options
| author | ruki <[email protected]> | 2019-02-05 00:46:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-02-04 22:40:33 +0800 |
| commit | 9b0e2b87b998b58788f3256c20ffc23f0b49190a (patch) | |
| tree | df037bda21f2e0da055ec363847be7f8cdd9ad10 /xmake/includes/check_cxxfuncs.lua | |
| parent | 631ea0396a19a6b39006a5368eb222d9eb382c5c (diff) | |
fix check xxx bug
Diffstat (limited to 'xmake/includes/check_cxxfuncs.lua')
| -rw-r--r-- | xmake/includes/check_cxxfuncs.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/includes/check_cxxfuncs.lua b/xmake/includes/check_cxxfuncs.lua index 3d95ee589..5f861c5b8 100644 --- a/xmake/includes/check_cxxfuncs.lua +++ b/xmake/includes/check_cxxfuncs.lua @@ -37,7 +37,7 @@ -- function check_cxxfuncs(definition, funcs, opt) opt = opt or {} - option(definition) + option(opt.name or definition) add_cxxfuncs(funcs) add_defines(definition) if opt.links then @@ -56,7 +56,7 @@ function check_cxxfuncs(definition, funcs, opt) add_cxxflags(opt.cxxflags) end option_end() - add_options(definition) + add_options(opt.name or definition) end -- check c++ funcs and add macro definition to the configuration files @@ -68,7 +68,7 @@ end -- function configvar_check_cxxfuncs(definition, funcs, opt) opt = opt or {} - option(definition) + option(opt.name or definition) add_cxxfuncs(funcs) set_configvar(definition, 1) if opt.links then @@ -87,5 +87,5 @@ function configvar_check_cxxfuncs(definition, funcs, opt) add_cxxflags(opt.cxxflags) end option_end() - add_options(definition) + add_options(opt.name or definition) end |
