mirror of
https://github.com/zed-industries/zed.git
synced 2026-05-31 19:05:00 +07:00
Closes #51339 This should address issues with too new libstdc++.so on older/more conservative distros such as RHEL9. Release Notes: - Relaxed requirement for libstdc++.so available on Linux distros.
18 lines
1.3 KiB
TOML
18 lines
1.3 KiB
TOML
# This config is different from config.toml in this directory, as the latter is recognized by Cargo.
|
|
# This file is placed in ./../.cargo/config.toml on CI runs. Cargo then merges Zeds .cargo/config.toml with ./../.cargo/config.toml
|
|
# with preference for settings from Zeds config.toml.
|
|
# TL;DR: If a value is set in both ci-config.toml and config.toml, config.toml value takes precedence.
|
|
# Arrays are merged together though. See: https://doc.rust-lang.org/cargo/reference/config.html#hierarchical-structure
|
|
# The intent for this file is to configure CI build process with a divergance from Zed developers experience; for example, in this config file
|
|
# we use `-D warnings` for rustflags (which makes compilation fail in presence of warnings during build process). Placing that in developers `config.toml`
|
|
# would be inconvenient.
|
|
# The reason for not using the RUSTFLAGS environment variable is that doing so would override all the settings in the config.toml file, even if the contents of the latter are completely nonsensical. See: https://github.com/rust-lang/cargo/issues/5376
|
|
# Here, we opted to use `[target.'cfg(all())']` instead of `[build]` because `[target.'**']` is guaranteed to be cumulative.
|
|
[target.'cfg(all())']
|
|
rustflags = ["-D", "warnings"]
|
|
|
|
# We don't need fullest debug information for dev stuff (tests etc.) in CI.
|
|
[profile.dev]
|
|
debug = "limited"
|
|
|
|
|