Fix late expansion or ${ROOT}

This commit is contained in:
Jeremie Dimino 2017-06-08 10:56:59 +01:00
parent 06ab34981c
commit 43c2710c43
1 changed files with 6 additions and 3 deletions

View File

@ -590,9 +590,12 @@ module Action = struct
acc.vdeps <- String_map.add acc.vdeps ~key ~data
end; None
| _ ->
match expand_var_no_root sctx var with
| Some s -> Some (Strings ([s], cos))
| None -> None)
match var with
| "ROOT" -> Some (Paths ([Path.root], cos))
| _ ->
match expand_var_no_root sctx var with
| Some s -> Some (Strings ([s], cos))
| None -> None)
in
(t, acc)