Skip to content

Commit

Permalink
review changes and end of line fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed Nov 22, 2024
1 parent 6deb6c6 commit 1180460
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-rs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ jobs:

tests-stable-llvm:
needs: changes
if: ${{ ( needs.changes.outputs.llvm == 'true' && github.event_name == 'push' ) || needs.changes.outputs.override == 'true' }}
if: ${{ ( needs.changes.outputs.llvm == 'true' && github.event_name == 'push' ) || needs.changes.outputs.override == 'true' }}
runs-on: ubuntu-latest
name: tests hugr-llvm
strategy:
Expand Down
4 changes: 2 additions & 2 deletions hugr-llvm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ keywords = ["Quantum", "Quantinuum"]
categories = ["compilers"]

[features]
test = [
test-utils = [
"insta",
"rstest",
"portgraph",
Expand Down Expand Up @@ -50,4 +50,4 @@ serde = { workspace = true, optional = true }
typetag = { workspace = true, optional = true }

[dev-dependencies]
hugr-llvm = {"path" = ".", features = ["test"]}
hugr-llvm = {"path" = ".", features = ["test-utils"]}
2 changes: 1 addition & 1 deletion hugr-llvm/src/emit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,5 +403,5 @@ pub fn get_intrinsic<'c>(
))
}

#[cfg(feature = "test")]
#[cfg(any(test, feature = "test-utils"))]
pub mod test;
2 changes: 1 addition & 1 deletion hugr-llvm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ pub fn llvm_version() -> &'static str {
panic!("No recognised llvm feature")
}

#[cfg(feature = "test")]
#[cfg(any(test, feature = "test-utils"))]
pub mod test;

pub use custom::{CodegenExtension, CodegenExtsBuilder};
2 changes: 1 addition & 1 deletion hugr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extension_inference = ["hugr-core/extension_inference"]
declarative = ["hugr-core/declarative"]
model_unstable = ["hugr-core/model_unstable", "hugr-model"]
llvm = ["hugr-llvm/llvm14-0"]
llvm-test = ["hugr-llvm/llvm14-0", "hugr-llvm/test"]
llvm-test = ["hugr-llvm/llvm14-0", "hugr-llvm/test-utils"]

[dependencies]
hugr-model = { path = "../hugr-model", optional = true, version = "0.14.0" }
Expand Down

0 comments on commit 1180460

Please sign in to comment.