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 /tests | |
| parent | 724a295b705555c329b1f8d89572892a74082386 (diff) | |
add set_defaultxxx
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/apis/add_allowedxxx/xmake.lua | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/apis/add_allowedxxx/xmake.lua b/tests/apis/add_allowedxxx/xmake.lua index 8db790ffa..e2f1f1ad9 100644 --- a/tests/apis/add_allowedxxx/xmake.lua +++ b/tests/apis/add_allowedxxx/xmake.lua @@ -1,9 +1,12 @@ add_rules("mode.debug", "mode.release") -add_allowedmodes("releasedbg", "debug", {default = "releasedbg"}) -add_allowedplats("windows", "linux", "macosx", {default = "linux"}) -add_allowedarchs("arm64", "x86_64", {plat = "macosx", default = "x86_64"}) -add_allowedarchs("i386", {plat = "linux", default = "i386"}) +set_defaultmode("releasedbg") +set_defaultplat("linux") +set_defaultarchs("macosx|arm64", "linux|i386", "armv7") + +set_allowedmodes("releasedbg", "debug") +set_allowedplats("windows", "linux", "macosx") +set_allowedarchs("macosx|arm64", "macosx|x86_64", "linux|i386", "linux|x86_64") target("test") set_kind("binary") |
