Skip to content

Have has_path_prefix handle when the path is the prefix

Jeremiah Bonney requested to merge jbonney/recc:prefix-fix into master

Currently has_path_prefix doesn't properly handle the case where path and prefix are the same in certain cases. This came up when trying to do a build of abseil-cpp, which has a -I rule to the repository root. Since RECC_PROJECT_ROOT needs to be set to the same place, we hit this issue.

After adding this fix I was able to successfully build abseil-cpp

Merge request reports