Don't check if path is root directly

This commit is contained in:
Rudi Grinberg 2018-05-04 14:34:02 +07:00
parent 28f451f33c
commit 7e9be66e6f
1 changed files with 1 additions and 1 deletions

View File

@ -1463,7 +1463,7 @@ let rec add_build_dir_to_keep t ~dir =
if not (Pset.mem t.build_dirs_to_keep dir) then begin
t.build_dirs_to_keep <- Pset.add t.build_dirs_to_keep dir;
let dir = Path.parent dir in
if dir <> Path.root then
if not (Path.is_root dir) then
add_build_dir_to_keep t ~dir
end