summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2019-01-08 22:48:23 +0800
committerruki <[email protected]>2019-01-08 10:50:20 +0800
commit399938c15818d73fc2b9e67966f285b9e0b0e0d3 (patch)
treec1c391811a88da18297e13c2ca7492af80a90f9c
parent2b5599ac092cb0da857ce490e6d5c75d01f60108 (diff)
fix objc template
-rw-r--r--xmake/templates/objc++/console/project/xmake.lua2
-rw-r--r--xmake/templates/objc/console/project/xmake.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/templates/objc++/console/project/xmake.lua b/xmake/templates/objc++/console/project/xmake.lua
index 7a56c9d69..68cba346c 100644
--- a/xmake/templates/objc++/console/project/xmake.lua
+++ b/xmake/templates/objc++/console/project/xmake.lua
@@ -25,7 +25,7 @@ end
add_frameworks("Foundation", "CoreFoundation")
-- for macosx or ios
-if os("macosx", "ios") then
+if is_os("macosx", "ios") then
-- enable arc?
add_mxflags("-fobjc-arc")
diff --git a/xmake/templates/objc/console/project/xmake.lua b/xmake/templates/objc/console/project/xmake.lua
index 04d70929f..0477ea739 100644
--- a/xmake/templates/objc/console/project/xmake.lua
+++ b/xmake/templates/objc/console/project/xmake.lua
@@ -6,7 +6,7 @@ add_rules("mode.debug", "mode.release")
add_frameworks("Foundation", "CoreFoundation")
-- for macosx or ios
-if os("macosx", "ios") then
+if is_os("macosx", "ios") then
-- enable arc?
add_mxflags("-fobjc-arc")