Skip to content

Commit

Permalink
make backend selection case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
lqd committed Nov 15, 2024
1 parent 56f124f commit 4f56e2b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions collector/src/bin/collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -968,10 +968,11 @@ fn main_result() -> anyhow::Result<i32> {
// majority of cases.
let mut backends = vec![];
if let Some(requested_backends) = requested_backends {
if requested_backends.contains("Llvm") {
let requested_backends = requested_backends.to_lowercase();
if requested_backends.contains("llvm") {
backends.push(CodegenBackend::Llvm);
}
if requested_backends.contains("Cranelift") {
if requested_backends.contains("cranelift") {
backends.push(CodegenBackend::Cranelift);
}
}
Expand Down

0 comments on commit 4f56e2b

Please sign in to comment.