Skip to content

Commit

Permalink
fix config
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Jan 8, 2025
1 parent 9c0f92f commit 6317ffd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xmake/core/project/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 6317ffd

Please sign in to comment.