From ccfc8d33cbd80807a3980304b0a0151af2318909 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 5 Feb 2020 00:40:32 +0800 Subject: fix check options --- xmake/core/sandbox/modules/import/core/project/project.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/xmake/core/sandbox/modules/import/core/project/project.lua b/xmake/core/sandbox/modules/import/core/project/project.lua index a7e99e8c6..a2aa82bd2 100644 --- a/xmake/core/sandbox/modules/import/core/project/project.lua +++ b/xmake/core/sandbox/modules/import/core/project/project.lua @@ -93,11 +93,7 @@ function sandbox_core_project.check() end -- check all options - local runjobs = import("private.async.runjobs", {anonymous = true}) - local ok, errors = true--utils.trycall(runjobs, "check_options", instance:fork(checktask):script(), #options, 4) - if not ok then - raise(errors) - end + import("private.async.runjobs", {anonymous = true})("check_options", instance:fork(checktask):script(), #options, 4) -- leave toolchains environment environment.leave("toolchains") @@ -106,7 +102,7 @@ function sandbox_core_project.check() option.save() -- leave the project directory - ok, errors = os.cd(oldir) + local ok, errors = os.cd(oldir) if not ok then raise(errors) end -- cgit v1.3.1