@@ -22,11 +22,15 @@ Currently, the following QNX Neutrino versions and compilation targets are suppo
22
22
23
23
| QNX Neutrino Version | Target Architecture | Full support | ` no_std ` support |
24
24
| ----------------------| ---------------------| :------------:| :----------------:|
25
- | 7.1 | AArch64 | ✓ | ✓ |
25
+ | 7.1 with io-pkt | AArch64 | ✓ | ✓ |
26
+ | 7.1 with io-sock | AArch64 | ✓ | ✓ |
26
27
| 7.1 | x86_64 | ✓ | ✓ |
27
28
| 7.0 | AArch64 | ? | ✓ |
28
29
| 7.0 | x86 | | ✓ |
29
30
31
+ On QNX 7.0 and 7.1, ` io-pkt ` is used as network stack by default. QNX 7.1 includes
32
+ the optional network stack ` io-sock ` .
33
+
30
34
Adding other architectures that are supported by QNX Neutrino is possible.
31
35
32
36
In the table above, 'full support' indicates support for building Rust applications with the full standard library.
@@ -107,7 +111,8 @@ There are no further known requirements.
107
111
For conditional compilation, following QNX Neutrino specific attributes are defined:
108
112
109
113
- ` target_os ` = ` "nto" `
110
- - ` target_env ` = ` "nto71" ` (for QNX Neutrino 7.1)
114
+ - ` target_env ` = ` "nto71" ` (for QNX Neutrino 7.1 with "classic" network stack "io_pkt")
115
+ - ` target_env ` = ` "nto71_iosock" ` (for QNX Neutrino 7.1 with network stack "io_sock")
111
116
- ` target_env ` = ` "nto70" ` (for QNX Neutrino 7.0)
112
117
113
118
## Building the target
@@ -134,14 +139,18 @@ export build_env='
134
139
CFLAGS_aarch64-unknown-nto-qnx710=-Vgcc_ntoaarch64le_cxx
135
140
CXX_aarch64-unknown-nto-qnx710=qcc
136
141
AR_aarch64_unknown_nto_qnx710=ntoaarch64-ar
142
+ CC_aarch64-unknown-nto-qnx710-iosock=qcc
143
+ CFLAGS_aarch64-unknown-nto-qnx710-iosock=-Vgcc_ntoaarch64le_cxx
144
+ CXX_aarch64-unknown-nto-qnx710-iosock=qcc
145
+ AR_aarch64_unknown_nto_qnx710_iosock=ntoaarch64-ar
137
146
CC_x86_64-pc-nto-qnx710=qcc
138
147
CFLAGS_x86_64-pc-nto-qnx710=-Vgcc_ntox86_64_cxx
139
148
CXX_x86_64-pc-nto-qnx710=qcc
140
149
AR_x86_64_pc_nto_qnx710=ntox86_64-ar'
141
150
142
151
env $build_env \
143
152
./x.py build \
144
- --target aarch64-unknown-nto-qnx710,x86_64-pc-nto-qnx710,x86_64-unknown-linux-gnu \
153
+ --target aarch64-unknown-nto-qnx710-iosock,aarch64-unknown-nto-qnx710 ,x86_64-pc-nto-qnx710,x86_64-unknown-linux-gnu \
145
154
rustc library/core library/alloc library/std
146
155
```
147
156
0 commit comments