Don't check if path is root directly
This commit is contained in:
parent
28f451f33c
commit
7e9be66e6f
|
@ -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
|
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;
|
t.build_dirs_to_keep <- Pset.add t.build_dirs_to_keep dir;
|
||||||
let dir = Path.parent dir in
|
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
|
add_build_dir_to_keep t ~dir
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue