You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of #92098 - semarie:openbsd-platform, r=pietroalbini
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 #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 ?
The target names follow this format: `$ARCH-unknown-openbsd`, where `$ARCH` specifies the target processor architecture. The following targets are currently defined:
|`aarch64-unknown-openbsd`| libc++ |[64-bit ARM systems](https://www.openbsd.org/arm64.html)|
14
+
|`i686-unknown-openbsd`| libc++ |[Standard PC and clones based on the Intel i386 architecture and compatible processors](https://www.openbsd.org/i386.html)|
15
+
|`sparc64-unknown-openbsd`| estdc++ |[Sun UltraSPARC and Fujitsu SPARC64 systems](https://www.openbsd.org/sparc64.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).
-[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)
25
+
26
+
Fallback to ports@openbsd.org, OpenBSD third parties public mailing-list (with openbsd developers readers)
27
+
28
+
29
+
## Requirements
30
+
31
+
These targets are natively compiled and could be cross-compiled.
32
+
C compiler toolchain is required for the purpose of building Rust and functional binaries.
33
+
34
+
## Building
35
+
36
+
The target can be built by enabling it for a `rustc` build.
37
+
38
+
```toml
39
+
[build]
40
+
target = ["$ARCH-unknown-openbsd"]
41
+
42
+
[target.$ARCH-unknown-openbsd]
43
+
cc = "$ARCH-openbsd-cc"
44
+
```
45
+
46
+
## Cross-compilation
47
+
48
+
These targets can be cross-compiled, but LLVM might not build out-of-box.
49
+
50
+
## Testing
51
+
52
+
The Rust testsuite could be run natively.
53
+
54
+
## Building Rust programs
55
+
56
+
Rust does not yet ship pre-compiled artifacts for these targets.
0 commit comments