From 21bb17612dec27213805321fb656788ec423453f Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sun, 4 Aug 2013 18:02:04 -0700 Subject: gras: jit factory automatically adds GRAS_ROOT include path --- lib/module_loader.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/module_loader.cpp') diff --git a/lib/module_loader.cpp b/lib/module_loader.cpp index d64722d..de3aa87 100644 --- a/lib/module_loader.cpp +++ b/lib/module_loader.cpp @@ -61,6 +61,14 @@ static std::string my_get_env(const std::string &name, const std::string &defalt return (env_var != NULL)? env_var : defalt; } +//used by jit factory, but defined here for lazyness +std::string get_gras_runtime_include_path(void) +{ + const std::string root = my_get_env("GRAS_ROOT", "@GRAS_ROOT@"); + const fs::path inc_path = fs::path(root) / "include"; + return inc_path.string(); +} + GRAS_STATIC_BLOCK(gras_module_loader) { //!search the GRAS_ROOT directory for this install -- cgit