diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-05-26T14·50+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-05-26T14·52+0200 |
commit | 39d72640c2459dc2fa689bfe8b756ee193f7b98a (patch) | |
tree | 2d889185bf06c0446d9b3774054f1264fbf443ff /src/libexpr/common-opts.cc | |
parent | a8edf185a9e1677088c8c30acc9d281c8350bca7 (diff) |
Ensure that -I flags get included in nixPath
Also fixes #261.
Diffstat (limited to 'src/libexpr/common-opts.cc')
-rw-r--r-- | src/libexpr/common-opts.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/common-opts.cc b/src/libexpr/common-opts.cc index 9b3421f6c4bc..14a75f7b6f43 100644 --- a/src/libexpr/common-opts.cc +++ b/src/libexpr/common-opts.cc @@ -35,11 +35,11 @@ bool parseOptionArg(const string & arg, Strings::iterator & i, bool parseSearchPathArg(const string & arg, Strings::iterator & i, - const Strings::iterator & argsEnd, EvalState & state) + const Strings::iterator & argsEnd, Strings & searchPath) { if (arg != "-I") return false; if (i == argsEnd) throw UsageError(format("`%1%' requires an argument") % arg);; - state.addToSearchPath(*i++, true); + searchPath.push_back(*i++); return true; } |