diff options
Diffstat (limited to 'xmake/scripts/action/_run.lua')
| -rw-r--r-- | xmake/scripts/action/_run.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/xmake/scripts/action/_run.lua b/xmake/scripts/action/_run.lua index 1a24874e0..bec3656b3 100644 --- a/xmake/scripts/action/_run.lua +++ b/xmake/scripts/action/_run.lua @@ -31,6 +31,19 @@ local config = require("base/config") local project = require("base/project") local platform = require("platform/platform") +-- need access to the given file? +function _run.need(name) + + -- check + assert(name) + + -- the accessors + local accessors = { config = true, global = true, project = true, platform = true } + + -- need it? + return accessors[name] +end + -- done the given config function _run.done() |
