Skip to content

Commit

Permalink
reorder some flags
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Jan 29, 2024
1 parent f3a50c7 commit 5db5b8b
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ static DEFAULT_RUSTFLAGS: &[&[&str]] = &[
],
// basic stuff, edition 2015
&[
"-Zmir-opt-level=5",
"-Zmir-opt-level=3",
"-Zmir-opt-level=2",
"-Zmir-opt-level=1",
"-Zmir-opt-level=0",
"-Zunsound-mir-opts",
"-Zcrate-attr=feature(abi_vectorcall)",
"-Zcrate-attr=feature(anonymous_lifetime_in_impl_trait)",
"-Zcrate-attr=feature(generic_assert)",
Expand Down Expand Up @@ -237,12 +243,6 @@ static DEFAULT_RUSTFLAGS: &[&[&str]] = &[
"-Zvalidate-mir",
"-Zverify-llvm-ir=yes",
"-Zincremental-verify-ich=yes",
"-Zmir-opt-level=0",
"-Zmir-opt-level=1",
"-Zmir-opt-level=2",
"-Zmir-opt-level=3",
"-Zmir-opt-level=5",
"-Zunsound-mir-opts",
"-Zdump-mir=all",
"--emit=mir",
"-Zprint-mono-items=eager",
Expand All @@ -266,6 +266,12 @@ static DEFAULT_RUSTFLAGS: &[&[&str]] = &[
],
// basic stuff, edition 2018
&[
"-Zmir-opt-level=5",
"-Zmir-opt-level=3",
"-Zmir-opt-level=2",
"-Zmir-opt-level=1",
"-Zmir-opt-level=0",
"-Zunsound-mir-opts",
"-Zcrate-attr=feature(abi_vectorcall)",
"-Zcrate-attr=feature(anonymous_lifetime_in_impl_trait)",
"-Zcrate-attr=feature(generic_assert)",
Expand Down Expand Up @@ -431,12 +437,6 @@ static DEFAULT_RUSTFLAGS: &[&[&str]] = &[
"-Zvalidate-mir",
"-Zverify-llvm-ir=yes",
"-Zincremental-verify-ich=yes",
"-Zmir-opt-level=0",
"-Zmir-opt-level=1",
"-Zmir-opt-level=2",
"-Zmir-opt-level=3",
"-Zmir-opt-level=5",
"-Zunsound-mir-opts",
"-Zdump-mir=all",
"--emit=mir",
"-Zprint-mono-items=eager",
Expand All @@ -460,6 +460,12 @@ static DEFAULT_RUSTFLAGS: &[&[&str]] = &[
],
// basic stuff, edition 2021
&[
"-Zmir-opt-level=5",
"-Zmir-opt-level=3",
"-Zmir-opt-level=2",
"-Zmir-opt-level=1",
"-Zmir-opt-level=0",
"-Zunsound-mir-opts",
"-Zcrate-attr=feature(abi_vectorcall)",
"-Zcrate-attr=feature(anonymous_lifetime_in_impl_trait)",
"-Zcrate-attr=feature(generic_assert)",
Expand Down Expand Up @@ -625,12 +631,6 @@ static DEFAULT_RUSTFLAGS: &[&[&str]] = &[
"-Zvalidate-mir",
"-Zverify-llvm-ir=yes",
"-Zincremental-verify-ich=yes",
"-Zmir-opt-level=0",
"-Zmir-opt-level=1",
"-Zmir-opt-level=2",
"-Zmir-opt-level=3",
"-Zmir-opt-level=5",
"-Zunsound-mir-opts",
"-Zdump-mir=all",
"--emit=mir",
"-Zprint-mono-items=eager",
Expand Down Expand Up @@ -670,6 +670,9 @@ static DEFAULT_RUSTFLAGS: &[&[&str]] = &[
"-Zcross-crate-inline-threshold=always",
"-Zinline-mir-threshold=300",
"-Zlint-mir",
// need codegen
"-Zcodegen-backend=cranelift",
"-ocodegen",
// features
"-Zcrate-attr=feature(abi_vectorcall)",
"-Zcrate-attr=feature(anonymous_lifetime_in_impl_trait)",
Expand Down Expand Up @@ -830,9 +833,6 @@ static DEFAULT_RUSTFLAGS: &[&[&str]] = &[
"-Zcrate-attr=feature(used_with_arg)",
"-Zcrate-attr=feature(wasm_abi)",
"-Zcrate-attr=feature(yeet_expr)",
// need codegen
"-Zcodegen-backend=cranelift",
"-ocodegen",
],
/* rustc codegen gcc
&["--edition=2021"],
Expand Down

0 comments on commit 5db5b8b

Please sign in to comment.