-fnormalize-inc-dirs
remove non-existent or duplicate directories from include paths
if -fnormalize-inc-dirs is specified. This will help
to compile current coreutils package
This commit is contained in:
1
tccpp.c
1
tccpp.c
@ -1663,6 +1663,7 @@ ST_FUNC void preprocess(int is_bof)
|
||||
/* search in all the include paths */
|
||||
int j = i - 2, k = j - s1->nb_include_paths;
|
||||
path = k < 0 ? s1->include_paths[j] : s1->sysinclude_paths[k];
|
||||
if (path == 0) continue;
|
||||
pstrcpy(buf1, sizeof(buf1), path);
|
||||
pstrcat(buf1, sizeof(buf1), "/");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user