Browse Source

improve add_cfuncs

ruki 2 years ago
parent
commit
820063215d
1 changed files with 2 additions and 4 deletions
  1. 2 4
      configure

+ 2 - 4
configure

@@ -1139,8 +1139,7 @@ add_cfuncs() {
     if ! ${_loading_options}; then
         return
     fi
-    local cfuncs="${1}"
-    _add_option_item "${_xmake_sh_option_current}" "cfuncs" "${cfuncs}"
+    _add_option_item "${_xmake_sh_option_current}" "cfuncs" "${@}"
 }
 
 # add cxxfuncs in option
@@ -1148,8 +1147,7 @@ add_cxxfuncs() {
     if ! ${_loading_options}; then
         return
     fi
-    local cxxfuncs="${1}"
-    _add_option_item "${_xmake_sh_option_current}" "cxxfuncs" "${cxxfuncs}"
+    _add_option_item "${_xmake_sh_option_current}" "cxxfuncs" "${@}"
 }
 
 # add cincludes in option