summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-01-29 12:17:41 +0800
committerruki <[email protected]>2023-01-29 12:17:41 +0800
commit70518298d211c91f39bbeb82a4a5db1fe9ca23f8 (patch)
tree82d724a474f6e86e27b12dbd5dfb2dabb2c2e8ff
parentd1a50f59defa99b3ac99c37a0b024d49cf2cc701 (diff)
improve mode
-rw-r--r--xmake/rules/mode/xmake.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/xmake/rules/mode/xmake.lua b/xmake/rules/mode/xmake.lua
index 458553540..2bc812d2e 100644
--- a/xmake/rules/mode/xmake.lua
+++ b/xmake/rules/mode/xmake.lua
@@ -51,7 +51,7 @@ rule("mode.release")
-- enable optimization
if not target:get("optimize") then
- if is_plat("android", "iphoneos") then
+ if target:is_plat("android", "iphoneos") then
target:set("optimize", "smallest")
else
target:set("optimize", "fastest")
@@ -82,7 +82,7 @@ rule("mode.releasedbg")
-- enable optimization
if not target:get("optimize") then
- if is_plat("android", "iphoneos") then
+ if target:is_plat("android", "iphoneos") then
target:set("optimize", "smallest")
else
target:set("optimize", "fastest")
@@ -140,7 +140,7 @@ rule("mode.profile")
-- enable optimization
if not target:get("optimize") then
- if is_plat("android", "iphoneos") then
+ if target:is_plat("android", "iphoneos") then
target:set("optimize", "smallest")
else
target:set("optimize", "fastest")
@@ -196,7 +196,7 @@ rule("mode.asan")
-- enable optimization
if not target:get("optimize") then
- if is_plat("android", "iphoneos") then
+ if target:is_plat("android", "iphoneos") then
target:set("optimize", "smallest")
else
target:set("optimize", "fastest")
@@ -225,7 +225,7 @@ rule("mode.tsan")
-- enable optimization
if not target:get("optimize") then
- if is_plat("android", "iphoneos") then
+ if target:is_plat("android", "iphoneos") then
target:set("optimize", "smallest")
else
target:set("optimize", "fastest")
@@ -254,7 +254,7 @@ rule("mode.msan")
-- enable optimization
if not target:get("optimize") then
- if is_plat("android", "iphoneos") then
+ if target:is_plat("android", "iphoneos") then
target:set("optimize", "smallest")
else
target:set("optimize", "fastest")
@@ -283,7 +283,7 @@ rule("mode.lsan")
-- enable optimization
if not target:get("optimize") then
- if is_plat("android", "iphoneos") then
+ if target:is_plat("android", "iphoneos") then
target:set("optimize", "smallest")
else
target:set("optimize", "fastest")
@@ -312,7 +312,7 @@ rule("mode.ubsan")
-- enable optimization
if not target:get("optimize") then
- if is_plat("android", "iphoneos") then
+ if target:is_plat("android", "iphoneos") then
target:set("optimize", "smallest")
else
target:set("optimize", "fastest")
@@ -341,7 +341,7 @@ rule("mode.valgrind")
-- enable optimization
if not target:get("optimize") then
- if is_plat("android", "iphoneos") then
+ if target:is_plat("android", "iphoneos") then
target:set("optimize", "smallest")
else
target:set("optimize", "fastest")