@@ -191,7 +191,7 @@ pub enum Optimisation {
191
191
#[ allow( dead_code) ]
192
192
#[ repr( C ) ]
193
193
#[ derive( Copy , Clone ) ]
194
- pub enum ArchiveKind {
194
+ enum ArchiveKind {
195
195
Gnu ,
196
196
Mips64 ,
197
197
Bsd ,
@@ -202,14 +202,15 @@ pub enum ArchiveKind {
202
202
pub struct BuildOptions {
203
203
/// Target triple to generate machine code for
204
204
///
205
- /// *Defaults* to `$TARGET` environment variable, if set (always is in cargo build scripts).
206
- /// The target triple has the general format <arch><sub>-<vendor>-<sys>-<abi>, where:
205
+ /// The target triple has the general format `<arch><sub>-<vendor>-<sys>-<abi>`, where:
206
+ ///
207
+ /// * `<arch>` x86, arm, thumb, mips, etc.
208
+ /// * `<sub>` for example on ARM: v5, v6m, v7a, v7m, etc.
209
+ /// * `<vendor>` pc, apple, nvidia, ibm, etc.
210
+ /// * `<sys>` none, linux, win32, darwin, cuda, etc.
211
+ /// * `<abi>` eabi, gnu, android, macho, elf, etc.
207
212
///
208
- /// * <arch> x86, arm, thumb, mips, etc.
209
- /// * <sub> for example on ARM: v5, v6m, v7a, v7m, etc.
210
- /// * <vendor> pc, apple, nvidia, ibm, etc.
211
- /// * <sys> none, linux, win32, darwin, cuda, etc.
212
- /// * <abi> eabi, gnu, android, macho, elf, etc.
213
+ /// *Defaults* to `$TARGET` environment variable, if set (always is in cargo build scripts).
213
214
///
214
215
/// Corresponds to the `-mtriple` option of `llc`.
215
216
pub triple : String ,
@@ -244,7 +245,7 @@ pub struct BuildOptions {
244
245
pub reloc : Relocations ,
245
246
/// Code optimisation level
246
247
///
247
- /// *Defaults` to the same level as specified by `$OPT_LEVEL` environment variable (set by
248
+ /// *Defaults* to the same level as specified in the `$OPT_LEVEL` environment variable (set by
248
249
/// cargo) and `Optimisation::O0` if not set.
249
250
///
250
251
/// Corresponds to the `-O` option of `llc`.
0 commit comments