Commit d7715b70 by Doug Evans

(process_command): Kludge in stageN/../include instead of include.

From-SVN: r7270
parent b3f741ed
......@@ -2450,14 +2450,15 @@ process_command (argc, argv)
1, 0, 0);
/* As a kludge, if the arg is "[foo/]stageN/", just add
"include" to the include prefix. */
"[foo/]stageN/../include" to the include prefix. */
{
int len = strlen (value);
if ((len == 7 || (len > 7 && value[len - 8] == '/'))
&& strncmp (value + len - 7, "stage", 5) == 0
&& isdigit (value[len - 2])
&& value[len - 1] == '/')
add_prefix (&include_prefix, "include", 1, 0, 0);
add_prefix (&include_prefix,
concat (value, "../include", ""), 1, 0, 0);
}
}
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment