diff options
Diffstat (limited to 'lib/jit_factory.cpp')
-rw-r--r-- | lib/jit_factory.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/jit_factory.cpp b/lib/jit_factory.cpp index cdcfc03..882ee05 100644 --- a/lib/jit_factory.cpp +++ b/lib/jit_factory.cpp @@ -23,6 +23,9 @@ #include <fstream> #include <map> +//defined in module loader +std::string get_gras_runtime_include_path(void); + /*********************************************************************** * Helper function to call a clang compliation **********************************************************************/ @@ -60,6 +63,9 @@ static std::string call_clang(const std::string &source, const std::vector<std:: cmd.push_back(flag.c_str()); } + //root include path + cmd.push_back("-I"+get_gras_runtime_include_path()); + //format command string std::string command; BOOST_FOREACH(const std::string &c, cmd) |