#include "builddate.h"
#include "gprstate.h"
#include "cgraph.h"
+#include "globals.h"
#include "ingraphs.h"
#include "compile.h"
#include "queue.h"
*
* FIX - use pathinclude/pathfind
*/
-static char *resolve(char *arg)
+static char *resolve(char *arg, int Verbose)
{
char *path;
char *s;
}
else
path = DFLT_GVPRPATH;
-
+ if (Verbose)
+ fprintf (stderr, "PATH: %s\n", path);
if (!(fp = sfstropen())) {
error(ERROR_ERROR, "Could not open buffer");
return 0;
sfclose(fp);
if (pathp)
sfclose(pathp);
+ if (Verbose)
+ fprintf (stderr, "file %s resolved to %s\n", arg, fname);
return fname;
}
opts->compflags |= (SRCOUT|CLONE);
break;
case 'f':
- if ((optarg = getOptarg(c, &arg, &argi, argc, argv)) && (opts->program = resolve(optarg))) {
+ if ((optarg = getOptarg(c, &arg, &argi, argc, argv)) && (opts->program = resolve(optarg, opts->verbose))) {
opts->useFile = 1;
}
else return -1;