|
| 1 | +[env] |
| 2 | +# set coin name for diem dependencies |
| 3 | +RUST_DIEM_COIN_MODULE="libra_coin" |
| 4 | +RUST_DIEM_COIN_NAME="LibraCoin" |
| 5 | + |
| 6 | +[target.'cfg(target_os = "linux")'] |
| 7 | +# Dramatically increases the link performance for the eventbus |
| 8 | +rustflags = ["-C", "link-arg=-fuse-ld=lld"] # sudo apt -y install lld |
| 9 | +# Uncomment following lines for faster link times (see brew cmd to install zld) |
| 10 | +# [target.'cfg(target_os = "macos")'] |
| 11 | +# rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld"] # brew install michaeleisel/zld/zld |
| 12 | + |
| 13 | +[build] |
| 14 | +rustflags = ["--cfg", "tokio_unstable", "-C", "force-frame-pointers=yes", "-C", "force-unwind-tables=yes"] |
| 15 | + |
| 16 | +# TODO(grao): Figure out whether we should enable other cpu features, and whether we should use a different way to configure them rather than list every single one here. |
| 17 | +[target.x86_64-unknown-linux-gnu] |
| 18 | +rustflags = [ |
| 19 | + "--cfg", |
| 20 | + "tokio_unstable", |
| 21 | + "-C", |
| 22 | + "link-arg=-fuse-ld=lld", |
| 23 | + "-C", |
| 24 | + "force-frame-pointers=yes", |
| 25 | + "-C", |
| 26 | + "force-unwind-tables=yes", |
| 27 | + "-C", |
| 28 | + "target-feature=+sse4.2", |
| 29 | +] |
| 30 | + |
| 31 | +# 64 bit MSVC |
| 32 | +[target.x86_64-pc-windows-msvc] |
| 33 | +rustflags = [ |
| 34 | + "--cfg", |
| 35 | + "tokio_unstable", |
| 36 | + "-C", |
| 37 | + "force-frame-pointers=yes", |
| 38 | + "-C", |
| 39 | + "force-unwind-tables=yes", |
| 40 | + "-C", |
| 41 | + "link-arg=/STACK:8000000", # Set stack to 8 MB |
| 42 | +] |
| 43 | + |
| 44 | +[target.aarch64-apple-darwin] |
| 45 | +rustflags = [ |
| 46 | + "-C", |
| 47 | + "link-arg=-L/opt/homebrew/opt/gmp", |
| 48 | +] |
0 commit comments