From f9ff78318f83281993c9d66a4b0cf4d72c883633 Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Fri, 14 Jan 2022 07:09:07 -0800 Subject: [PATCH] Revert "optimization: switch fastbuild opt default to 1 from 0 (#1091)" (#1094) This reverts commit 2048a655aa18386430fcf0fa382dc9b6b6f80617. --- docs/flatten.md | 2 +- docs/rust_repositories.md | 2 +- rust/toolchain.bzl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/flatten.md b/docs/flatten.md index bcda7d736c..9a1a968b79 100644 --- a/docs/flatten.md +++ b/docs/flatten.md @@ -1167,7 +1167,7 @@ See @rules_rust//rust:repositories.bzl for examples of defining the @rust_cpuX r | default_edition | The edition to use for rust_* rules that don't specify an edition. | String | optional | "2018" | | dylib_ext | The extension for dynamic libraries created from rustc. | String | required | | | exec_triple | The platform triple for the toolchains execution environment. For more details see: https://docs.bazel.build/versions/master/skylark/rules.html#configurations | String | optional | "" | -| opt_level | Rustc optimization levels. | Dictionary: String -> String | optional | {"dbg": "0", "fastbuild": "1", "opt": "3"} | +| opt_level | Rustc optimization levels. | Dictionary: String -> String | optional | {"dbg": "0", "fastbuild": "0", "opt": "3"} | | os | The operating system for the current toolchain | String | required | | | rust_doc | The location of the rustdoc binary. Can be a direct source or a filegroup containing one item. | Label | optional | None | | rust_lib | The rust standard library. | Label | optional | None | diff --git a/docs/rust_repositories.md b/docs/rust_repositories.md index de9cadd845..48ca2b0ecd 100644 --- a/docs/rust_repositories.md +++ b/docs/rust_repositories.md @@ -93,7 +93,7 @@ See @rules_rust//rust:repositories.bzl for examples of defining the @rust_cpuX r | default_edition | The edition to use for rust_* rules that don't specify an edition. | String | optional | "2018" | | dylib_ext | The extension for dynamic libraries created from rustc. | String | required | | | exec_triple | The platform triple for the toolchains execution environment. For more details see: https://docs.bazel.build/versions/master/skylark/rules.html#configurations | String | optional | "" | -| opt_level | Rustc optimization levels. | Dictionary: String -> String | optional | {"dbg": "0", "fastbuild": "1", "opt": "3"} | +| opt_level | Rustc optimization levels. | Dictionary: String -> String | optional | {"dbg": "0", "fastbuild": "0", "opt": "3"} | | os | The operating system for the current toolchain | String | required | | | rust_doc | The location of the rustdoc binary. Can be a direct source or a filegroup containing one item. | Label | optional | None | | rust_lib | The rust standard library. | Label | optional | None | diff --git a/rust/toolchain.bzl b/rust/toolchain.bzl index b9b02cf639..834382ecf3 100644 --- a/rust/toolchain.bzl +++ b/rust/toolchain.bzl @@ -342,7 +342,7 @@ rust_toolchain = rule( doc = "Rustc optimization levels.", default = { "dbg": "0", - "fastbuild": "1", + "fastbuild": "0", "opt": "3", }, ),