summaryrefslogtreecommitdiff
path: root/xmake/core/base/interpreter.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-11-17 00:00:08 +0800
committerruki <[email protected]>2020-11-17 00:00:08 +0800
commit6bf2b94cd10acdf490bcef6d69add2615336ffa7 (patch)
treede662e435d9a41c7cdc7f76535a1f41201394921 /xmake/core/base/interpreter.lua
parent65c33b62b77dd00cde68792c975b4b7c1394563e (diff)
improve scriptdir
Diffstat (limited to 'xmake/core/base/interpreter.lua')
-rw-r--r--xmake/core/base/interpreter.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua
index 818ff9576..a92225711 100644
--- a/xmake/core/base/interpreter.lua
+++ b/xmake/core/base/interpreter.lua
@@ -748,13 +748,20 @@ end
function interpreter:make(scope_kind, remove_repeat, enable_filter)
-- get the results with the given scope
+ self._PENDING = true
local ok, results = xpcall(interpreter._make, interpreter._traceback, self, scope_kind, remove_repeat, enable_filter)
+ self._PENDING = false
if not ok then
return nil, results
end
return results
end
+-- is pending?
+function interpreter:pending()
+ return self._PENDING
+end
+
-- get all loaded script files (xmake.lua)
function interpreter:scriptfiles()
assert(self and self._PRIVATE)