# For default builds on a desktop we want to enable all CPU features so
# that all of our tests will run. This setting doesn't get picked up and
# copied forward by cargo, so crates using this crate as a dependency
# are not affected.
[build]
rustflags = ["-C","target-cpu=native"]
rustdocflags = ["-C","target-cpu=native"]


# Building for Android requires different settings for windows vs linux hosts.
# See scripts/*-android/.cargo/config for host-specific android cargo config.



# iOS targets can't use target-cpu=native without warnings

[target.aarch64-apple-ios] # Apple A7 and later
rustflags = ["-C","target-cpu=generic"]

[target.armv7-apple-ios] # Apple A5 and earlier
rustflags = ["-C","target-cpu=generic"]

[target.armv7s-apple-ios] # Apple A6 and A6X chips (iPhone 5, iPhone 5C and iPad 4)
rustflags = ["-C","target-cpu=generic"]

[target.i386-apple-ios] # Emulators
rustflags = ["-C","target-cpu=generic"]

[target.x86_64-apple-ios] # Emulators
rustflags = ["-C","target-cpu=generic"]



# Linux targets may or may not be cross-compiling.  Assume we're not.
# Travis will use scripts/generic-cross/.cargo/config to avoid warnings when cross compiling.



# WASM targets can't use target-cpu=native without warnings either

[target.wasm32-unknown-emscripten]
rustflags = ["-C","target-cpu=generic"]

[target.wasm32-unknown-unknown]
rustflags = ["-C","target-cpu=generic"]

[target.wasm32-wasi]
rustflags = ["-C","target-cpu=generic"]
