summaryrefslogtreecommitdiff
path: root/xmake/core/project/project.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-06-04 22:40:39 +0800
committerruki <[email protected]>2020-06-04 10:03:55 +0800
commita9078281697bac4e2b6e1ccaa144bdd5101a0e49 (patch)
tree7c479ad0d4f5114f6f4bbd5e4cdfa479997932b3 /xmake/core/project/project.lua
parentc0ae2b21a94c639237a0cacb37577dcdde0c39d6 (diff)
add is_host and is_subhost for interpreter
Diffstat (limited to 'xmake/core/project/project.lua')
-rw-r--r--xmake/core/project/project.lua12
1 files changed, 0 insertions, 12 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua
index be492e662..96d4256ef 100644
--- a/xmake/core/project/project.lua
+++ b/xmake/core/project/project.lua
@@ -95,16 +95,6 @@ function project._api_is_kind(interp, ...)
end
end
--- the current host is belong to the given hosts?
-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, ...)
@@ -670,8 +660,6 @@ function project.apis()
{"is_os", project._api_is_os }
, {"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 }