mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Rust uses a version of ThinLTO by default now [1]. This can be tweaked by adjusting rust compiler flags, which is probably a better way of controlling this than a custom servo configuration considering: 1. We want to remove the custom servo configuration eventually. 2. The -Z option that this configuration currently uses is unsupported by stable rust. 1. https://blog.rust-lang.org/inside-rust/2020/06/29/lto-improvements.html
63 lines
2.2 KiB
Text
63 lines
2.2 KiB
Text
# Copy this file to .servobuild in the Servo root directory
|
||
|
||
# Paths starting with "./" are relative to the repo root
|
||
|
||
# Tool options
|
||
[tools]
|
||
|
||
# If uncommented, this command is used instead of the platform’s default
|
||
# to notify at the end of a compilation that took a long time.
|
||
# This is the name or path of an executable called with two arguments:
|
||
# the summary and content of the notification.
|
||
#notify-command = "notify-send"
|
||
|
||
[build]
|
||
# Set "mode = dev" or use `mach build --dev` to build the project with warning.
|
||
# or Set "mode = release" or use `mach build --release` for optimized build.
|
||
# Defaults to prompting before building
|
||
#mode = "dev"
|
||
|
||
# Set "android = true" or use `mach build --android` to build the Android app.
|
||
android = false
|
||
|
||
# Enable `debug_assert!` macros in release mode
|
||
debug-assertions = true
|
||
|
||
# Set "debug-mozjs" or use `mach build --debug-mozjs` to build a debug spidermonkey.
|
||
debug-mozjs = false
|
||
|
||
# When a GL error occurs as a result of a WebGL operation, print the stack trace for the content
|
||
# JS and native Rust code that triggered the failed operation. Warning: very slow.
|
||
webgl-backtrace = false
|
||
|
||
# When a DOM exception is reported, print the stack trace for the content JS and native Rust code
|
||
# that triggered it.
|
||
dom-backtrace = false
|
||
|
||
# Default to the “2020” implementation of CSS layout instead of the “2013” one.
|
||
layout-2020 = true
|
||
|
||
# Pick a media stack based on the target. Other values are "gstreamer" and "dummy"
|
||
media-stack = "auto"
|
||
|
||
# Set to the path to your ccache binary to enable caching of compiler outputs
|
||
#ccache = "/usr/local/bin/ccache"
|
||
|
||
# Any optional flags that will be added to $RUSTFLAGS
|
||
#rustflags = ""
|
||
|
||
# Enable or disable rustc’s incremental compilation
|
||
# Cargo’s default is to enable it in debug mode but not in release mode.
|
||
# Leaving this key unspecified makes mach keep Cargo’s default.
|
||
# It can be set to true or false in order to always enable or always disable
|
||
# incremental compilation.
|
||
#incremental = false
|
||
#incremental = true
|
||
|
||
# Android information
|
||
[android]
|
||
# Defaults to the value of $ANDROID_SDK, $ANDROID_NDK, $ANDROID_TOOLCHAIN, $ANDROID_PLATFORM respectively
|
||
#sdk = "/opt/android-sdk"
|
||
#ndk = "/opt/android-ndk"
|
||
#toolchain = "/opt/android-toolchain"
|
||
#platform = "android-18"
|