Document that macOS linker flags apply on aarch64 as well

This commit is contained in:
Alex Gaynor 2020-12-20 10:30:48 -05:00
parent 11f0442468
commit 5bca8371da
2 changed files with 12 additions and 0 deletions

View File

@ -81,6 +81,12 @@ rustflags = [
"-C", "link-arg=-undefined", "-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup", "-C", "link-arg=dynamic_lookup",
] ]
[target.aarch64-apple-darwin]
rustflags = [
"-C", "link-arg=-undefined",
"-C", "link-arg=dynamic_lookup",
]
``` ```
While developing, you can symlink (or copy) and rename the shared library from the target folder: On MacOS, rename `libstring_sum.dylib` to `string_sum.so`, on Windows `libstring_sum.dll` to `string_sum.pyd`, and on Linux `libstring_sum.so` to `string_sum.so`. Then open a Python shell in the same folder and you'll be able to `import string_sum`. While developing, you can symlink (or copy) and rename the shared library from the target folder: On MacOS, rename `libstring_sum.dylib` to `string_sum.so`, on Windows `libstring_sum.dll` to `string_sum.pyd`, and on Linux `libstring_sum.so` to `string_sum.so`. Then open a Python shell in the same folder and you'll be able to `import string_sum`.

View File

@ -90,6 +90,12 @@
//! "-C", "link-arg=-undefined", //! "-C", "link-arg=-undefined",
//! "-C", "link-arg=dynamic_lookup", //! "-C", "link-arg=dynamic_lookup",
//! ] //! ]
//!
//! [target.aarch64-apple-darwin]
//! rustflags = [
//! "-C", "link-arg=-undefined",
//! "-C", "link-arg=dynamic_lookup",
//! ]
//! ``` //! ```
//! //!
//! While developing, you symlink (or copy) and rename the shared library from //! While developing, you symlink (or copy) and rename the shared library from