-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Document x86_64-unknown-linux-none target
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/doc/rustc/src/platform-support/x86_64-unknown-linux-none.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# `x86_64-unknown-linux-none` | ||
|
||
**Tier: 3** | ||
|
||
Freestanding x86-64 linux binary with no depedency on libc. | ||
|
||
## Target maintainers | ||
|
||
- [morr0ne](https://github.com/morr0ne/) | ||
|
||
## Requirements | ||
|
||
This target is cross compiled and can be built from any host. | ||
|
||
This target has no support for host tools, std and alloc. | ||
|
||
## Building the target | ||
|
||
The target can be built by enabling it for a `rustc` build: | ||
|
||
```toml | ||
[build] | ||
build-stage = 1 | ||
target = ["x86_64-unknown-linux-none"] | ||
``` | ||
|
||
## Building Rust programs | ||
|
||
Rust does not yet ship pre-compiled artifacts for this target. To compile for | ||
this target, you will either need to build Rust with the target enabled (see | ||
"Building the target" above), or build your own copy of `core` by using | ||
`build-std` or similar. | ||
|
||
## Testing | ||
|
||
Created binaries will run on linux without any external requirements | ||
|
||
## Cross-compilation toolchains and C code | ||
|
||
Support for C code is currently untested |