Fix expansion of ROOT

This commit is contained in:
Jeremie Dimino 2017-06-08 11:42:14 +01:00
parent 12f458eaad
commit 0a3abd96a1
1 changed files with 1 additions and 1 deletions

View File

@ -586,7 +586,7 @@ module Action = struct
end end
| _ -> | _ ->
match var with match var with
| "ROOT" -> Some (path_exp Path.root) | "ROOT" -> Some (path_exp sctx.context.build_dir)
| "@" -> begin | "@" -> begin
match targets_written_by_user with match targets_written_by_user with
| Infer -> Loc.fail loc "You cannot use ${@} with inferred rules." | Infer -> Loc.fail loc "You cannot use ${@} with inferred rules."