Skip to content

Commit

Permalink
Change is_local to work like is_managed
Browse files Browse the repository at this point in the history
The name change will come later
  • Loading branch information
rgrinberg committed May 11, 2018
1 parent 05c7897 commit 43b76ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/stdune/path.ml
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,10 @@ let kind = function

let is_local_fn t = t = "" || Filename.is_relative t

let is_local t = Kind.is_local (kind t)
let is_local = function
| In_build_dir _
| In_source_tree _ -> true
| External _ -> false

let to_string t = Kind.to_string (kind t)

Expand Down

0 comments on commit 43b76ee

Please sign in to comment.