Pārlūkot izejas kodu

includes all for options

ruki 2 gadi atpakaļ
vecāks
revīzija
229e113bda
1 mainītis faili ar 2 papildinājumiem un 5 dzēšanām
  1. 2 5
      configure

+ 2 - 5
configure

@@ -96,9 +96,6 @@ is_hostarch()
 # e.g. includes "src" "tests"
 includes()
 {
-    if ! ${_loading_targets}; then
-        return
-    fi
     for path in $@; do
         if test -f "${path}"; then
             _includes_rootdir=$(dirname -- "${path}")
@@ -211,12 +208,12 @@ _load_options()
     _loading_targets=false
     local file=${xmake_sh_rootdir}/xmake.sh
     if test -f "${file}"; then
-        . "${file}"
+        includes "${file}"
     else
         # include all xmake.sh files in next sub-directories
         local files=`find ${xmake_sh_rootdir} -maxdepth 2 -mindepth 2 -name "xmake.sh"`
         for file in ${files}; do
-            . "${file}"
+            includes "${file}"
         done
     fi
 }