summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/sandbox/modules/import/core/project/project.lua8
1 files 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