Skip to content

Commit 23f2827

Browse files
committed
Fix detection of rules build
1 parent 033889d commit 23f2827

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpp2rust/cpp2rust.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static bool HasIRFiles(const fs::path &dir) {
105105
static bool ResolveRulesDir() {
106106
std::array<fs::path, 3> candidates = {fs::path("./rules"),
107107
fs::path("../rules"),
108-
GetExecutableDir() / "../../rules"};
108+
GetExecutableDir() / "../rules"};
109109

110110
for (const auto &dir : candidates) {
111111
if (fs::exists(dir) && fs::is_directory(dir) && HasIRFiles(dir)) {

0 commit comments

Comments
 (0)