Skip to content

Commit 1dcf5ac

Browse files
committed
Cleanups
Privatise the ArchiveFormat enum for now as well, since we are not using it currently and it is incompatible change to remove it later again.
1 parent 543a493 commit 1dcf5ac

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

src/lib.rs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ pub enum Optimisation {
191191
#[allow(dead_code)]
192192
#[repr(C)]
193193
#[derive(Copy, Clone)]
194-
pub enum ArchiveKind {
194+
enum ArchiveKind {
195195
Gnu,
196196
Mips64,
197197
Bsd,
@@ -202,14 +202,15 @@ pub enum ArchiveKind {
202202
pub struct BuildOptions {
203203
/// Target triple to generate machine code for
204204
///
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.
207212
///
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).
213214
///
214215
/// Corresponds to the `-mtriple` option of `llc`.
215216
pub triple: String,
@@ -244,7 +245,7 @@ pub struct BuildOptions {
244245
pub reloc: Relocations,
245246
/// Code optimisation level
246247
///
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
248249
/// cargo) and `Optimisation::O0` if not set.
249250
///
250251
/// Corresponds to the `-O` option of `llc`.

0 commit comments

Comments
 (0)