diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-06-19 22:13:16 +0100 | 
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-06-19 22:13:16 +0100 | 
| commit | b22d20d5f9cc1373b06c5601b2fe2a4512833e46 (patch) | |
| tree | 88a4b988af36fd274f3a4e2b42658df42e674c53 | |
| parent | Pass input parameters, write output objects (diff) | |
| download | icespider-b22d20d5f9cc1373b06c5601b2fe2a4512833e46.tar.bz2 icespider-b22d20d5f9cc1373b06c5601b2fe2a4512833e46.tar.xz icespider-b22d20d5f9cc1373b06c5601b2fe2a4512833e46.zip  | |
Pass search path to slice parser
| -rw-r--r-- | icespider/compile/routeCompiler.cpp | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/icespider/compile/routeCompiler.cpp b/icespider/compile/routeCompiler.cpp index 4881129..aee3f7f 100644 --- a/icespider/compile/routeCompiler.cpp +++ b/icespider/compile/routeCompiler.cpp @@ -132,6 +132,10 @@ namespace IceSpider {  					throw std::runtime_error("Could not find slice file");  				}  				std::vector<std::string> cppArgs; +				for (const auto & p : searchPath) { +					cppArgs.push_back("-I"); +					cppArgs.push_back(p.string()); +				}  				Slice::PreprocessorPtr icecpp = Slice::Preprocessor::create("IceSpider", realSlice.string(), cppArgs);  				FILE * cppHandle = icecpp->preprocess(false);  | 
