diff options
| author | ruki <[email protected]> | 2023-10-13 23:35:43 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-10-13 23:35:43 +0800 |
| commit | d7c725089bf07caa36323e6cf136a8ccd4db288a (patch) | |
| tree | 7e75fe88dee605ff29b387b8a42b6a1ec638cb81 /xmake/toolchains/xcode | |
| parent | a0bb01624626ec060da172aa13ec41428dd1761b (diff) | |
add simulator
Diffstat (limited to 'xmake/toolchains/xcode')
| -rw-r--r-- | xmake/toolchains/xcode/load_applexros.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xmake/toolchains/xcode/load_applexros.lua b/xmake/toolchains/xcode/load_applexros.lua index f4f5ec596..61b142374 100644 --- a/xmake/toolchains/xcode/load_applexros.lua +++ b/xmake/toolchains/xcode/load_applexros.lua @@ -31,7 +31,8 @@ function main(toolchain) -- init target flags if target_minver then - local target = ("%s-apple-xros%s"):format(arch, target_minver) + local simulator = toolchain:config("appledev") == "simulator" + local target = (simulator and "%s-apple-xrsimulator%s" or "%s-apple-xros%s"):format(arch, target_minver) toolchain:add("cxflags", "-target", target) toolchain:add("mxflags", "-target", target) toolchain:add("asflags", "-target", target) @@ -44,8 +45,8 @@ function main(toolchain) -- init flags for c/c++ toolchain:add("cxflags", "-isysroot", xcode_sysroot) - toolchain:add("ldflags", "-ObjC", "-fobjc-link-runtime", "-isysroot", xcode_sysroot) - toolchain:add("shflags", "-ObjC", "-fobjc-link-runtime", "-isysroot", xcode_sysroot) + toolchain:add("ldflags", "-fobjc-link-runtime", "-isysroot", xcode_sysroot) + toolchain:add("shflags", "-fobjc-link-runtime", "-isysroot", xcode_sysroot) -- init flags for objc/c++ toolchain:add("mxflags", "-isysroot", xcode_sysroot) |
