diff options
Diffstat (limited to 'xmake/scripts/tools/swiftc.lua')
| -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 |
