summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-02-05 00:40:32 +0800
committerruki <[email protected]>2020-02-07 22:45:56 +0800
commitccfc8d33cbd80807a3980304b0a0151af2318909 (patch)
treeffeb8fd0cbc610e53a1efc3204f6684eeb0269bd
parent35b8b34362abe28a638af8ee02d3babe8e3548e2 (diff)
fix check options
-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