1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/rustc.md
K.B.Dharun Krishna 10bccbd1e4
rust/*: update path, add Tamil translation (#9637)
* rustup: add page

* rustc: add Tamil translation

* rustfmt: add Tamil translation

* rust/* : update path

* rustc: update Tamil translation

* Apply suggestions from code review

Co-authored-by: Jack Lin <blueskyson1401@gmail.com>

Co-authored-by: Jack Lin <blueskyson1401@gmail.com>
2023-01-04 12:27:33 +08:00

33 lines
714 B
Markdown

# rustc
> The Rust compiler.
> Processes, compiles and links Rust language source files.
> More information: <https://doc.rust-lang.org/rustc>.
- Compile a single file:
`rustc {{path/to/file.rs}}`
- Compile with high optimization:
`rustc -O {{path/to/file.rs}}`
- Compile with debugging information:
`rustc -g {{path/to/file.rs}}`
- Compile with architecture-specific optimizations for the current CPU:
`rustc -C target-cpu=native {{path/to/file.rs}}`
- Display architecture-specific optimizations for the current CPU:
`rustc -C target-cpu=native --print cfg`
- Display target list:
`rustc --print target-list`
- Compile for a specific target:
`rustc --target {{target_triple}} {{path/to/file.rs}}`