rust/library/std/src/sys/pal
Guillaume Gomez 9efd1477ac
Rollup merge of #124089 - simlay:fix-preadv64-and-pwritev64-link-for-watchos-and-visionos, r=workingjubilee
Fix watchOS and visionOS for pread64 and pwrite64 calls

In #122880, links to `preadv64` and `pwritev64` were added for `watchOS` however the underlying [`weak!` macro did not include `target_os = "watchos"`](c45dee5efd/library/std/src/sys/pal/unix/weak.rs (L30-L74)).

This resulted in an `xcodebuild` error when targeting `watchOS`:
```
Undefined symbols for architecture arm64:
  "_preadv64", referenced from:
      __rust_extern_with_linkage_preadv64 in libliveview_native_core.a[274](std-324fdd8d31e8eaa2.std.e18cf7e8d0336778-cgu.08.rcgu.o)
  "_pwritev64", referenced from:
      __rust_extern_with_linkage_pwritev64 in libliveview_native_core.a[274](std-324fdd8d31e8eaa2.std.e18cf7e8d0336778-cgu.08.rcgu.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```

So I added them. I also went ahead and added the same for visionOS because it's bound to create the same issue.
2024-04-21 13:30:25 +02:00
..
common Add support for Arm64EC to the Standard Library 2024-04-15 16:05:16 -07:00
hermit Factor some common io::Error constants 2024-04-11 09:55:15 +02:00
itron Revert #121666 2024-04-05 12:50:31 +00:00
sgx Rollup merge of #123811 - joboet:queue_em_up, r=ChrisDenton 2024-04-16 21:41:25 +02:00
solid Factor some common io::Error constants 2024-04-11 09:55:15 +02:00
teeos Factor some common io::Error constants 2024-04-11 09:55:15 +02:00
uefi Revert #121666 2024-04-05 12:50:31 +00:00
unix Fix watchOS and visionOS for pread64 and pwrite64 calls 2024-04-21 00:36:07 -04:00
unsupported Factor some common io::Error constants 2024-04-11 09:55:15 +02:00
wasi Revert #121666 2024-04-05 12:50:31 +00:00
wasip2 Provide cabi_realloc on wasm32-wasip2 by default 2024-03-13 08:15:08 -07:00
wasm Revert #121666 2024-04-05 12:50:31 +00:00
windows Rollup merge of #124019 - ChrisDenton:futex-raw-dylib, r=joboet 2024-04-18 21:38:56 -07:00
xous Factor some common io::Error constants 2024-04-11 09:55:15 +02:00
zkvm zkvm: fix references to os_str module 2024-04-15 09:32:21 -07:00
mod.rs Get wasm32-wasip2 compiling with its custom pal implementation 2024-03-13 08:15:07 -07:00