diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-05-26 16:50:36 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-05-26 16:52:31 +0200 |
commit | 39d72640c2459dc2fa689bfe8b756ee193f7b98a (patch) | |
tree | 2d889185bf06c0446d9b3774054f1264fbf443ff /src/libexpr/parser.y | |
parent | a8edf185a9e1677088c8c30acc9d281c8350bca7 (diff) |
Ensure that -I flags get included in nixPath
Also fixes #261.
Diffstat (limited to 'src/libexpr/parser.y')
-rw-r--r-- | src/libexpr/parser.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y index 06d6d643f..698e8ce3f 100644 --- a/src/libexpr/parser.y +++ b/src/libexpr/parser.y @@ -629,7 +629,7 @@ void EvalState::addToSearchPath(const string & s, bool warn) path = absPath(path); if (pathExists(path)) { debug(format("adding path `%1%' to the search path") % path); - searchPath.insert(searchPathInsertionPoint, std::pair<string, Path>(prefix, path)); + searchPath.push_back(std::pair<string, Path>(prefix, path)); } else if (warn) printMsg(lvlError, format("warning: Nix search path entry `%1%' does not exist, ignoring") % path); } |