From cb1cc4d49575afe5408cef037c011168c7fcd43e Mon Sep 17 00:00:00 2001 From: Michael Kefeder Date: Wed, 19 Apr 2023 22:02:32 +0200 Subject: [PATCH] comment on how to link on macOS apple silicon machine --- examples/rp2040_local_i2c_init/Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/rp2040_local_i2c_init/Cargo.toml b/examples/rp2040_local_i2c_init/Cargo.toml index c8e475ab71..9174ad0431 100644 --- a/examples/rp2040_local_i2c_init/Cargo.toml +++ b/examples/rp2040_local_i2c_init/Cargo.toml @@ -36,3 +36,8 @@ opt-level = "s" # optimize for size codegen-units = 1 # better optimizations debug = true # symbols are nice and they don't increase the size on Flash lto = true # better optimzations + +[features] +# avoid having to use --allow-multiple-definition linker flag +# on macOS with Apple Silicon at least +#default = ["rp-pico/disable-intrinsics"]