tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] Change order of built-in include paths?


From: Edmund Grimley Evans
Subject: [Tinycc-devel] Change order of built-in include paths?
Date: Sun, 22 Nov 2015 20:23:52 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

Does anyone, and in particular grischka, who last modified this code,
object to the following patch?

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 -

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
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]