소스 검색

improve add_cfuncs

ruki 2 년 전
부모
커밋
820063215d
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  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