aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMichael Kefeder <m.kefeder@gmail.com>2023-04-19 22:02:32 +0200
committerMichael Kefeder <m.kefeder@gmail.com>2023-04-19 22:02:32 +0200
commitcb1cc4d49575afe5408cef037c011168c7fcd43e (patch)
tree610bb7f0f3559bc61c90acc3865a6ca4a73b8cbe /examples
parent688ba1cf5b777995b777f6ec9555b69cced5a218 (diff)
comment on how to link on macOS apple silicon machine
Diffstat (limited to 'examples')
-rw-r--r--examples/rp2040_local_i2c_init/Cargo.toml5
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/rp2040_local_i2c_init/Cargo.toml b/examples/rp2040_local_i2c_init/Cargo.toml
index c8e475a..9174ad0 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"]