diff options
| author | ruki <[email protected]> | 2025-01-09 00:57:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-01-09 00:57:17 +0800 |
| commit | 6317ffd0fe312360eb5f6e079320c01c95870ad0 (patch) | |
| tree | 0e5e7469b67919498d207a3333126fb0c6e2e065 | |
| parent | 9c0f92f7cfcabe17fbb56c2f6bc1ea54a7223f82 (diff) | |
fix config
| -rw-r--r-- | xmake/core/project/config.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/project/config.lua b/xmake/core/project/config.lua index 3e53fe388..35ccd9145 100644 --- a/xmake/core/project/config.lua +++ b/xmake/core/project/config.lua @@ -277,17 +277,17 @@ end -- the current mode is belong to the given modes? function config.is_mode(...) - return config.is_value("mode", ...) + return config._is_value(config.get("mode"), ...) end -- the current platform is belong to the given platforms? function config.is_plat(...) - return config.is_value("plat", ...) + return config._is_value(config.get("plat"), ...) end -- the current architecture is belong to the given architectures? function config.is_arch(...) - return config.is_value("arch", ...) + return config._is_value(config.get("arch"), ...) end -- is cross-compilation? |
