Skip to content

Commit

Permalink
Add xrOS platform (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
agg23 committed Jan 30, 2024
1 parent 567edaf commit 2125bfe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/examples/src/readobj/macho.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,8 @@ const FLAGS_PLATFORM: &[Flag<u32>] = &flags!(
PLATFORM_TVOSSIMULATOR,
PLATFORM_WATCHOSSIMULATOR,
PLATFORM_DRIVERKIT,
PLATFORM_XROS,
PLATFORM_XROSSIMULATOR
);
const FLAGS_N_EXT: &[Flag<u8>] = &flags!(N_PEXT, N_EXT);
const FLAGS_N_TYPE: &[Flag<u8>] = &flags!(N_UNDF, N_ABS, N_SECT, N_PBUD, N_INDR);
Expand Down
2 changes: 2 additions & 0 deletions src/macho.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1978,6 +1978,8 @@ pub const PLATFORM_IOSSIMULATOR: u32 = 7;
pub const PLATFORM_TVOSSIMULATOR: u32 = 8;
pub const PLATFORM_WATCHOSSIMULATOR: u32 = 9;
pub const PLATFORM_DRIVERKIT: u32 = 10;
pub const PLATFORM_XROS: u32 = 11;
pub const PLATFORM_XROSSIMULATOR: u32 = 12;

/* Known values for the tool field above. */
pub const TOOL_CLANG: u32 = 1;
Expand Down

0 comments on commit 2125bfe

Please sign in to comment.