Skip to content

revmc-cli-tests: resolve FileCheck from LLVM prefix environment#86

Open
0xDmtri wants to merge 1 commit intoparadigmxyz:mainfrom
0xDmtri:main
Open

revmc-cli-tests: resolve FileCheck from LLVM prefix environment#86
0xDmtri wants to merge 1 commit intoparadigmxyz:mainfrom
0xDmtri:main

Conversation

@0xDmtri
Copy link
Contributor

@0xDmtri 0xDmtri commented Feb 27, 2026

Description
This fixes cargo test --release --features llvm failing on machines where FileCheck is not in PATH (e.g. Homebrew LLVM installs).

Changes:

  • Add resolve_filecheck() in crates/revmc-cli-tests/src/lib.rs.
  • Prefer FILECHECK env var when set.
  • Fallback to $LLVM_SYS_211_PREFIX/bin/FileCheck.
  • Fallback to any LLVM_SYS_*_PREFIX/bin/FileCheck.
  • Keep existing behavior (FileCheck from PATH) when no env-based path is found.

Validation:

  • Ran:
    • prefix=$(brew --prefix llvm@21)
    • export LLVM_SYS_211_PREFIX=$prefix
    • cargo test --release --features llvm
  • Result: all tests pass.

@0xDmtri 0xDmtri requested a review from DaniPopes as a code owner February 27, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant