diff options
author | Josh Blum | 2013-08-04 18:02:04 -0700 |
---|---|---|
committer | Josh Blum | 2013-08-04 18:02:04 -0700 |
commit | 21bb17612dec27213805321fb656788ec423453f (patch) | |
tree | 8745dd03efe85f5c5a3fa6751d8807eb17d57e17 /lib/jit_factory.cpp | |
parent | 4e67133913229ed66abc9dd4aaa95b29b1ff9ede (diff) | |
download | sandhi-21bb17612dec27213805321fb656788ec423453f.tar.gz sandhi-21bb17612dec27213805321fb656788ec423453f.tar.bz2 sandhi-21bb17612dec27213805321fb656788ec423453f.zip |
gras: jit factory automatically adds GRAS_ROOT include path
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) |