[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Change order of built-in include paths?
From: |
grischka |
Subject: |
Re: [Tinycc-devel] Change order of built-in include paths? |
Date: |
Mon, 23 Nov 2015 08:47:49 +0100 |
User-agent: |
Thunderbird 2.0.0.23 (Windows/20090812) |
Edmund Grimley Evans wrote:
Does anyone, and in particular grischka, who last modified this code,
object to the following patch?
Most likely I didn't change the seach order.
I think TCC's own include directory (/usr/local/lib/tcc/include by
default) should come before the system directories (/usr/local/include
and so on) because there may be compiler-specific files in there.
GCC puts its own directory first, as shown by: echo | gcc -xc -E -v -
Maybe it's not telling the truth.
(Concern based on recent reflections wrt. #include_next)
-- gr
Edmund
diff --git a/tcc.h b/tcc.h
index 05e3965..c284880 100644
--- a/tcc.h
+++ b/tcc.h
@@ -272,9 +272,9 @@ static inline void write64le(unsigned char *p, uint64_t x)
# define CONFIG_TCC_SYSINCLUDEPATHS "{B}/include;{B}/include/winapi"
# else
# define CONFIG_TCC_SYSINCLUDEPATHS \
- ALSO_MUADIR(CONFIG_SYSROOT "/usr/local/include") \
- ":" ALSO_MUADIR(CONFIG_SYSROOT "/usr/include") \
- ":" "{B}/include"
+ "{B}/include" \
+ ":" ALSO_MUADIR(CONFIG_SYSROOT "/usr/local/include") \
+ ":" ALSO_MUADIR(CONFIG_SYSROOT "/usr/include")
# endif
#endif