diff options
| author | ruki <[email protected]> | 2020-02-15 23:02:08 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-02-15 23:02:08 +0800 |
| commit | f7f0c37a44d58412cf0d1a41c4864696084f4e1d (patch) | |
| tree | bc277848976b0415c18f9c09e1fbd6f2874496a4 /xmake/core/project/project.lua | |
| parent | 9aa15302ae9fdb3a1be0b382f9bd5b3a64db0098 (diff) | |
add is_subhost
Diffstat (limited to 'xmake/core/project/project.lua')
| -rw-r--r-- | xmake/core/project/project.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua index f0e80d63b..2511e3554 100644 --- a/xmake/core/project/project.lua +++ b/xmake/core/project/project.lua @@ -95,6 +95,11 @@ function project._api_is_host(interp, ...) return os.is_host(...) end +-- the current subsystem host is belong to the given hosts? +function project._api_is_subhost(interp, ...) + return os.is_subhost(...) +end + -- the current config is belong to the given config values? function project._api_is_config(interp, name, ...) return config.is_value(name, ...) @@ -213,6 +218,7 @@ function project.interpreter() , {"is_kind", project._api_is_kind } , {"is_arch", project._api_is_arch } , {"is_host", project._api_is_host } + , {"is_subhost", project._api_is_subhost } , {"is_mode", project._api_is_mode } , {"is_plat", project._api_is_plat } , {"is_config", project._api_is_config } |
