Explorar o código

modify is_plat

ruki %!s(int64=6) %!d(string=hai) anos
pai
achega
d456bfa55f
Modificáronse 2 ficheiros con 2 adicións e 4 borrados
  1. 1 2
      manual.md
  2. 1 2
      zh/manual.md

+ 1 - 2
manual.md

@@ -100,8 +100,7 @@ end
 
 -- if the current platform is macosx or iphoneos
 if is_plat("macosx", "iphoneos") then
-    add_mxflags("-framework Foundation")
-    add_ldflags("-framework Foundation")
+    add_frameworks("Foundation")
 end
 ```
 

+ 1 - 2
zh/manual.md

@@ -103,8 +103,7 @@ end
 
 -- 如果当前平台是macosx或者iphoneos
 if is_plat("macosx", "iphoneos") then
-    add_mxflags("-framework Foundation")
-    add_ldflags("-framework Foundation")
+    add_frameworks("Foundation")
 end
 ```