Skip to content

Commit

Permalink
chore: Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
theduke committed Jan 25, 2024
1 parent fea6a4e commit 0ff6cc9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/cli/src/c_gen/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
//! A convenient little abstraction for building up C expressions and generating
//! simple C code.
#![allow(dead_code)]

pub mod staticlib_header;

/// An identifier in C.
Expand Down
7 changes: 5 additions & 2 deletions lib/cli/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,14 @@ pub struct CompilerOptions {
llvm: bool,

/// Enable compiler internal verification.
///
/// Available for cranelift, LLVM and singlepass.
#[clap(long)]
#[cfg(any(feature = "singlepass", feature = "cranelift", feature = "llvm"))]
enable_verifier: bool,

/// LLVM debug directory, where IR and object files will be written to.
#[cfg(feature = "llvm")]
///
/// Only available for the LLVM compiler.
#[clap(long)]
llvm_debug_dir: Option<PathBuf>,

Expand Down Expand Up @@ -305,6 +307,7 @@ impl CompilerOptions {

/// The compiler used for the store
#[derive(Debug, PartialEq, Eq)]
#[allow(clippy::upper_case_acronyms, dead_code)]
pub enum CompilerType {
/// Singlepass compiler
Singlepass,
Expand Down

0 comments on commit 0ff6cc9

Please sign in to comment.