summaryrefslogtreecommitdiff
path: root/xmake/tools/swiftc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-02-09 09:22:25 +0800
committerruki <[email protected]>2017-02-09 09:22:25 +0800
commitfd16730ec4846ea1acf8cb03d91f0a059d98fddf (patch)
tree2e4b09d80a62b0edb2dd4ff0f1a035dd6e591503 /xmake/tools/swiftc.lua
parent7bb2d3b070b62c5fce22276c92f342f2647b0a39 (diff)
add add_frameworks api
Diffstat (limited to 'xmake/tools/swiftc.lua')
-rw-r--r--xmake/tools/swiftc.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/tools/swiftc.lua b/xmake/tools/swiftc.lua
index 4fdca0f18..5b4823416 100644
--- a/xmake/tools/swiftc.lua
+++ b/xmake/tools/swiftc.lua
@@ -170,6 +170,13 @@ function nf_undefine(macro)
return "-Xcc -U" .. macro
end
+-- make the framework flag
+function nf_framework(framework)
+
+ -- make it
+ return "-framework" .. framework
+end
+
-- make the compile command
function compcmd(sourcefile, objectfile, flags)