summaryrefslogtreecommitdiff
path: root/xmake/toolchains/xcode/load_applexros.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2025-10-23 22:08:25 +0200
committerArthur LAURENT <[email protected]>2025-10-23 22:08:25 +0200
commit16dc28b62144cdcc42cb7597e39d2d9499ac7f49 (patch)
treeed93570c4bde41e999021f30c074e6938f2c6b3a /xmake/toolchains/xcode/load_applexros.lua
parent435242713b1d1ed077c264228c0216dfa985685f (diff)
feat(swift) use swiftc as swift static library archiver
Diffstat (limited to 'xmake/toolchains/xcode/load_applexros.lua')
-rw-r--r--xmake/toolchains/xcode/load_applexros.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/xmake/toolchains/xcode/load_applexros.lua b/xmake/toolchains/xcode/load_applexros.lua
index 9f1702ba5..6a74abaf7 100644
--- a/xmake/toolchains/xcode/load_applexros.lua
+++ b/xmake/toolchains/xcode/load_applexros.lua
@@ -37,6 +37,7 @@ function main(toolchain)
toolchain:add("scflags", "-target", target)
toolchain:add("scldflags", "-target", target)
toolchain:add("scshflags", "-target", target)
+ toolchain:add("scarflags", "-target", target)
end
-- init flags for c/c++
@@ -52,9 +53,10 @@ function main(toolchain)
-- init flags for asm
toolchain:add("asflags", "-isysroot", xcode_sysroot)
- -- init flags for swift (with toolchain:add("ldflags and toolchain:add("shflags)
+ -- init flags for swift (with toolchain:add("ldflags") and toolchain:add("shflags") and toolchain:add("arflags"))
toolchain:add("scflags", "-sdk " .. xcode_sysroot)
- toolchain:add("scshflags", "-sdk " .. xcode_sysroot)
- toolchain:add("scldflags", "-sdk " .. xcode_sysroot)
+ toolchain:add("scshflags", "-sdk " .. xcode_sysroot, "-emit-library")
+ toolchain:add("scarflags", "-sdk " .. xcode_sysroot, "-emit-library", "-static")
+ toolchain:add("scldflags", "-sdk " .. xcode_sysroot, "-emit-executable")
end