diff options
| author | ruki <[email protected]> | 2021-07-22 23:59:56 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-07-22 23:59:56 +0800 |
| commit | 161aae37144ebeba16c70956d30c0792de5fa328 (patch) | |
| tree | 3557897e040da1d7820c83a85c9c5840ccaa1fbf /xmake/modules/private | |
| parent | 724a295b705555c329b1f8d89572892a74082386 (diff) | |
add set_defaultxxx
Diffstat (limited to 'xmake/modules/private')
| -rw-r--r-- | xmake/modules/private/detect/find_platform.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/private/detect/find_platform.lua b/xmake/modules/private/detect/find_platform.lua index e5a6de09f..54f8a2182 100644 --- a/xmake/modules/private/detect/find_platform.lua +++ b/xmake/modules/private/detect/find_platform.lua @@ -28,7 +28,7 @@ function _find_plat(plat) plat = plat or config.get("plat") if not plat then if not plat then - _, plat = project.allowed_plats() + plat = project.get("defaultplat") end if not plat then plat = os.subhost() @@ -88,7 +88,7 @@ function _find_arch(plat, arch) arch = arch or config.get("arch") if not arch then if not arch then - _, arch = project.allowed_archs(plat) + arch = project.default_arch(plat) end if not arch then if plat == "android" then |
