chore: tweak rustc flags (#5293)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>pull/24376/head
parent
251af3f844
commit
5f9ade103f
|
@ -4,8 +4,13 @@ rustflags = [
|
|||
# Fix `perf` as suggested by https://github.com/flamegraph-rs/flamegraph/blob/2d19a162df4066f37d58d5471634f0bd9f0f4a62/README.md?plain=1#L18
|
||||
# Also see https://bugs.chromium.org/p/chromium/issues/detail?id=919499#c16
|
||||
"-C", "link-arg=-Wl,--no-rosegment",
|
||||
# Enable all features supported by CPUs more recent than haswell (2013)
|
||||
"-C", "target-cpu=haswell"
|
||||
]
|
||||
|
||||
[env]
|
||||
# set `ROARING_ARC` in all processes run by cargo
|
||||
|
||||
# set `ROARING_ARCH` in all processes run by cargo
|
||||
# workaround dynamic CPU detection bug in croaring
|
||||
# https://github.com/influxdata/influxdb_iox/pull/2119
|
||||
ROARING_ARCH = { value = "haswell", force = true }
|
||||
|
|
|
@ -347,12 +347,8 @@ jobs:
|
|||
environment:
|
||||
# Disable incremental compilation to avoid overhead. We are not preserving these files anyway.
|
||||
CARGO_INCREMENTAL: "0"
|
||||
# We keep the debug symbols (Enabled in Cargo.toml as debug = true)
|
||||
# workaround dynamic CPU detection bug in croaring
|
||||
# https://github.com/influxdata/influxdb_iox/pull/2119
|
||||
ROARING_ARCH: "haswell"
|
||||
# Use avx512 instructions to take full advantage of the CPUs instruction set
|
||||
RUSTFLAGS: "-C target-feature=+avx2 -C link-arg=-fuse-ld=lld --cfg tokio_unstable"
|
||||
# Enable tokio-console
|
||||
RUSTFLAGS: "--cfg tokio_unstable"
|
||||
# https://github.com/rust-lang/cargo/issues/10280
|
||||
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
|
||||
steps:
|
||||
|
|
Loading…
Reference in New Issue