In our build system, the plugin binary is stored in a different tree from where the scripts reside. Since dehydra initialization uses dirname(dehydra.so), it fails to find the standard scripts. Ideally, it should be useful to specify an include path for scripts (including dehydra's own). In the meantime, I could get around it by using the path of the script as the base directory for scripts:
diff --git a/dehydra_plugin.c b/dehydra_plugin.c index 7d8f9ec..1130bc0 100644 --- a/dehydra_plugin.c +++ b/dehydra_plugin.c @@ -213,7 +213,7 @@ int gcc_plugin_init(const char *file, const char* arg, char **pass } pset = pointer_set_create (); type_pset = pointer_set_create (); - dehydra_init (&dehydra, file, version_string); + dehydra_init (&dehydra, arg, version_string); int ret = dehydra_startup (&dehydra); if (ret) return ret; #ifdef TREEHYDRA_PLUGIN Is there a better way for doing this? Thanks. Diego. _______________________________________________ dev-static-analysis mailing list [email protected] https://lists.mozilla.org/listinfo/dev-static-analysis
