diff options
| author | seyko <seyko2@gmail.com> | 2016-04-03 11:42:15 +0300 |
|---|---|---|
| committer | seyko <seyko2@gmail.com> | 2016-04-03 11:42:15 +0300 |
| commit | 41785a0bf9d505a3647a10ddc330417f52fd4528 (patch) | |
| tree | 9f874091ec7a57b91487be9f43527a4110ed5372 /tccpp.c | |
| parent | 2bf43b5483fb65b19b6277948d6438d7c4ccc3bc (diff) | |
| download | tinycc-41785a0bf9d505a3647a10ddc330417f52fd4528.tar.gz tinycc-41785a0bf9d505a3647a10ddc330417f52fd4528.tar.bz2 | |
-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
Diffstat (limited to 'tccpp.c')
| -rw-r--r-- | tccpp.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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), "/"); } |
