diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2021-08-11 19:36:21 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-11 19:36:21 +0200 |
| commit | 60a5552d414ffedf84117df57963fd5bf099c2ea (patch) | |
| tree | 586178dc0f24bf9875e58a830af1e2fdde51af2f /lib/std/macho.zig | |
| parent | f2bf1390a29a9decaa5ca49d3ae720b360583b35 (diff) | |
| parent | 509fe33d10e4e89a351678f4d466f30a7870ebcf (diff) | |
| download | zig-60a5552d414ffedf84117df57963fd5bf099c2ea.tar.gz zig-60a5552d414ffedf84117df57963fd5bf099c2ea.zip | |
Merge pull request #9532 from ziglang/basic-ios-support
Add minimal support to Zig toolchain to support building iOS binaries
Diffstat (limited to 'lib/std/macho.zig')
| -rw-r--r-- | lib/std/macho.zig | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/std/macho.zig b/lib/std/macho.zig index cb030e941e..14be755a70 100644 --- a/lib/std/macho.zig +++ b/lib/std/macho.zig @@ -116,6 +116,21 @@ pub const build_tool_version = extern struct { version: u32, }; +pub const PLATFORM_MACOS: u32 = 0x1; +pub const PLATFORM_IOS: u32 = 0x2; +pub const PLATFORM_TVOS: u32 = 0x3; +pub const PLATFORM_WATCHOS: u32 = 0x4; +pub const PLATFORM_BRIDGEOS: u32 = 0x5; +pub const PLATFORM_MACCATALYST: u32 = 0x6; +pub const PLATFORM_IOSSIMULATOR: u32 = 0x7; +pub const PLATFORM_TVOSSIMULATOR: u32 = 0x8; +pub const PLATFORM_WATCHOSSIMULATOR: u32 = 0x9; +pub const PLATFORM_DRIVERKIT: u32 = 0x10; + +pub const TOOL_CLANG: u32 = 0x1; +pub const TOOL_SWIFT: u32 = 0x2; +pub const TOOL_LD: u32 = 0x3; + /// The entry_point_command is a replacement for thread_command. /// It is used for main executables to specify the location (file offset) /// of main(). If -stack_size was used at link time, the stacksize |
