forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#92098 - semarie:openbsd-platform, r=pietroa…
…lbini add OpenBSD platform-support page It mentions x86_64, i686, aarch64 and sparc64 which are actively maintained and used on OpenBSD (binaries provided by standard package distribution on OpenBSD). I volontary kept `powerpc-unknown-openbsd` unmentioned as it was added by `@Yn0ga` in rust-lang#82733, and I am unaware if it is functional or not (I doubt as I added libc support only few days ago, and std `c_char` signess was wrong). `@Yn0ga` maybe you comment on your `powerpc-unknown-openbsd` usage ?
- Loading branch information
Showing
3 changed files
with
61 additions
and
4 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
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,56 @@ | ||
# \*-unknown-openbsd | ||
|
||
**Tier: 3** | ||
|
||
[OpenBSD] multi-platform 4.4BSD-based UNIX-like operating system. | ||
|
||
[OpenBSD]: https://www.openbsd.org/ | ||
|
||
The target names follow this format: `$ARCH-unknown-openbsd`, where `$ARCH` specifies the target processor architecture. The following targets are currently defined: | ||
|
||
| Target name | C++ library | OpenBSD Platform | | ||
|--------------------------------|-------------|------------------| | ||
| `aarch64-unknown-openbsd` | libc++ | [64-bit ARM systems](https://www.openbsd.org/arm64.html) | | ||
| `i686-unknown-openbsd` | libc++ | [Standard PC and clones based on the Intel i386 architecture and compatible processors](https://www.openbsd.org/i386.html) | | ||
| `sparc64-unknown-openbsd` | estdc++ | [Sun UltraSPARC and Fujitsu SPARC64 systems](https://www.openbsd.org/sparc64.html) | | ||
| `x86_64-unknown-openbsd` | libc++ | [AMD64-based systems](https://www.openbsd.org/amd64.html) | | ||
|
||
Note that all OS versions are *major* even if using X.Y notation (`6.8` and `6.9` are different major versions) and could be binary incompatibles (with breaking changes). | ||
|
||
|
||
## Designated Developers | ||
|
||
- [@semarie](https://github.com/semarie), `semarie@openbsd.org` | ||
- [lang/rust](https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/lang/rust/Makefile?rev=HEAD&content-type=text/x-cvsweb-markup) maintainer (see MAINTAINER variable) | ||
|
||
Fallback to ports@openbsd.org, OpenBSD third parties public mailing-list (with openbsd developers readers) | ||
|
||
|
||
## Requirements | ||
|
||
These targets are natively compiled and could be cross-compiled. | ||
C compiler toolchain is required for the purpose of building Rust and functional binaries. | ||
|
||
## Building | ||
|
||
The target can be built by enabling it for a `rustc` build. | ||
|
||
```toml | ||
[build] | ||
target = ["$ARCH-unknown-openbsd"] | ||
|
||
[target.$ARCH-unknown-openbsd] | ||
cc = "$ARCH-openbsd-cc" | ||
``` | ||
|
||
## Cross-compilation | ||
|
||
These targets can be cross-compiled, but LLVM might not build out-of-box. | ||
|
||
## Testing | ||
|
||
The Rust testsuite could be run natively. | ||
|
||
## Building Rust programs | ||
|
||
Rust does not yet ship pre-compiled artifacts for these targets. |