Skip to content

Commit

Permalink
Merge pull request likebike#8 from lnicola/patch-1
Browse files Browse the repository at this point in the history
Reword --emit=asm advice
  • Loading branch information
likebike authored Sep 21, 2020
2 parents a5e9bac + 846926d commit 1e5154b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Add this to your Cargo.toml:
fasteval = "0.2.4"


You should **always** build with `RUSTFLAGS="--emit=asm"` because [it greatly improves LLVM's compile-time optimizations](http://likebike.com/posts/How_To_Write_Fast_Rust_Code.html#emit-asm).
You can use [`codegen-units=1`](https://doc.rust-lang.org/stable/cargo/reference/manifest.html#the-profile-sections) for better run-time performance. In some cases [it will greatly improves LLVM's compile-time optimizations](http://likebike.com/posts/How_To_Write_Fast_Rust_Code.html#emit-asm).

If you are using a 'nightly' Rust compiler, you can build with `--features nightly` to enable optimizations that aren't yet available in 'stable' Rust.

Expand Down

0 comments on commit 1e5154b

Please sign in to comment.