diff options
| author | ruki <[email protected]> | 2015-12-08 21:41:59 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-12-08 21:41:59 +0800 |
| commit | 93a02f675be08d750d327626ac7a04741e7a9d0e (patch) | |
| tree | 86bf11df22852532780ebc3681e0ec70860fb6e6 /xmake/scripts/tools | |
| parent | 5fc652aeba3000759914f54286048c239972ac07 (diff) | |
add swift link directory
Diffstat (limited to 'xmake/scripts/tools')
| -rw-r--r-- | xmake/scripts/tools/swiftc.lua | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/xmake/scripts/tools/swiftc.lua b/xmake/scripts/tools/swiftc.lua index 1548876c3..00301a1d2 100644 --- a/xmake/scripts/tools/swiftc.lua +++ b/xmake/scripts/tools/swiftc.lua @@ -63,17 +63,10 @@ function swiftc.init(self, name) } -- init ldflags - self.ldflags = { "-lswiftCore" } - - -- -target - -- armv7-apple-ios7.1 - -- x86_64-apple-ios9.0 - -- x86_64-apple-macosx10.10 - -- - -- -sdk - -- /xxx/xxx.sdk - -- - -- -enable-objc-interop + local swift_linkdirs = config.get("__swift_linkdirs") + if swift_linkdirs then + self.ldflags = { "-L" .. swift_linkdirs } + end end |
