Identify paths that should be ignored due to being inside the build directory.
This is used to prevent watch loops from triggering rebuilds due to build artifacts changing. When dependency watching is enabled, callers may selectively override this behavior.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | path | |||
| character(len=*), | intent(in) | :: | build_dir |
pure logical function is_ignored_path(path, build_dir) result(ignored) character(len=*), intent(in) :: path, build_dir character(len=:), allocatable :: p, b p = normalize_path(path) b = normalize_path(build_dir) ignored = .false. if (len_trim(b) == 0) return if (p == b) then ignored = .true. return end if if (starts_with(p, b // "/")) then ignored = .true. return end if if (contains_path_fragment(p, b)) then ignored = .true. return end if end function is_ignored_path