mirror of
https://github.com/NixOS/nix
synced 2025-06-27 21:01:16 +02:00
* Cache parse trees to prevent repeated parsing of imported Nix
expressions.
This commit is contained in:
parent
3d94be61ea
commit
55e207b2dc
3 changed files with 10 additions and 7 deletions
|
@ -526,12 +526,6 @@ Expr parseExprFromFile(EvalState & state, Path path)
|
|||
{
|
||||
assert(path[0] == '/');
|
||||
|
||||
#if 0
|
||||
/* Perhaps this is already an imploded parse tree? */
|
||||
Expr e = ATreadFromNamedFile(path.c_str());
|
||||
if (e) return e;
|
||||
#endif
|
||||
|
||||
/* If `path' is a symlink, follow it. This is so that relative
|
||||
path references work. */
|
||||
struct stat st;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue