mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-23 00:02:47 +00:00
Update cheatsheets
This commit is contained in:
@@ -15,7 +15,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Compile with optimizations (`s` means optimize for binary size; `z` is the same with even more optimizations):
|
||||
|
||||
`rustc -C lto -C opt-level={{0|1|2|3|s|z}} {{path/to/main.rs}}`
|
||||
`rustc {{[-C|--codegen]}} lto {{[-C|--codegen]}} opt-level={{0|1|2|3|s|z}} {{path/to/main.rs}}`
|
||||
|
||||
- Compile with debugging information:
|
||||
|
||||
@@ -27,7 +27,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Compile with architecture-specific optimizations for the current CPU:
|
||||
|
||||
`rustc -C target-cpu={{native}} {{path/to/main.rs}}`
|
||||
`rustc {{[-C|--codegen]}} target-cpu={{native}} {{path/to/main.rs}}`
|
||||
|
||||
- Display the target list (Note: you have to add a target using `rustup` first to be able to compile for it):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user