nagisa / rust_libloading

Bindings around the platform's dynamic library loading primitives with greatly improved memory safety.
https://docs.rs/libloading
ISC License
1.24k stars 102 forks source link

libloading does not build for aarch64-apple-visionos #149

Closed coolbluewater closed 4 months ago

coolbluewater commented 4 months ago

libloading does not build for the newly added Rust target aarch64-apple-visionos

Building using

cargo +nightly  build  --target aarch64-apple-visionos -Zbuild-std

Produces these errors (as well a bunch more):

error: Target has no known `RTLD_LAZY` value. Please submit an issue or PR adding it.
  --> src/os/unix/consts.rs:90:13
   |
90 | /             compile_error!(
91 | |                 "Target has no known `RTLD_LAZY` value. Please submit an issue or PR adding it."
92 | |             );
   | |_____________^

error: Target has no known `RTLD_NOW` value. Please submit an issue or PR adding it.
   --> src/os/unix/consts.rs:127:13
    |
127 | /             compile_error!(
128 | |                 "Target has no known `RTLD_NOW` value. Please submit an issue or PR adding it."
129 | |             );
    | |_____________^

error: Target has no known `RTLD_GLOBAL` value. Please submit an issue or PR adding it.
   --> src/os/unix/consts.rs:174:13
    |
174 | /             compile_error!(
175 | |                 "Target has no known `RTLD_GLOBAL` value. Please submit an issue or PR adding it."
176 | |             );
    | |_____________^

error: Target has no known `RTLD_LOCAL` value. Please submit an issue or PR adding it.
   --> src/os/unix/consts.rs:216:13
    |
216 | /             compile_error!(
217 | |                 "Target has no known `RTLD_LOCAL` value. Please submit an issue or PR adding it."
218 | |             );
    | |_____________^