tools/mkdeps: Always look in the current directory
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
2a2ffe41dd
commit
d2bb9bf2b4
@ -287,6 +287,10 @@ static void parse_args(int argc, char **argv)
|
|||||||
char *args = NULL;
|
char *args = NULL;
|
||||||
int argidx;
|
int argidx;
|
||||||
|
|
||||||
|
/* Always look in the current directory */
|
||||||
|
|
||||||
|
g_altpath = strdup(".");
|
||||||
|
|
||||||
/* Accumulate CFLAGS up to "--" */
|
/* Accumulate CFLAGS up to "--" */
|
||||||
|
|
||||||
for (argidx = 1; argidx < argc; argidx++)
|
for (argidx = 1; argidx < argc; argidx++)
|
||||||
@ -362,13 +366,6 @@ static void parse_args(int argc, char **argv)
|
|||||||
|
|
||||||
g_files = args;
|
g_files = args;
|
||||||
|
|
||||||
/* If no paths were specified, then look in the current directory only */
|
|
||||||
|
|
||||||
if (!g_altpath)
|
|
||||||
{
|
|
||||||
g_altpath = strdup(".");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (g_debug)
|
if (g_debug)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "SELECTIONS\n");
|
fprintf(stderr, "SELECTIONS\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user