Closed RalfJung closed 3 months ago
Yeah, Cargo and rustc both call it opt-level. Rusty's -O
is opt-level=2
, but in GCC and clang it's equivalent to -O1
and I strongly suspect that the most used nonzero opt level in Rust is 3 because that's the default for Cargo's --release
.
I remain surprised that this chaos hasn't caused issues for the compiler's codegen tests.
@bors r=saethlin
:pushpin: Commit 4f7bc6ad8698d581a4ec25c44a06586feacd0964 has been approved by saethlin
It is now in the queue for this repository.
:hourglass: Testing commit 4f7bc6ad8698d581a4ec25c44a06586feacd0964 with merge b8dffc5ae01be8cde6dbd07488ee015c479b68fb...
:sunny: Test successful - checks-actions Approved by: saethlin Pushing b8dffc5ae01be8cde6dbd07488ee015c479b68fb to master...
We can use some other term, but something is ignored and I think we should say that. I think cargo calls this "opt-level"?