Commits

Anonymous committed da4ffe3

BUG: Fixed extraction of include paths to work with non-english GCC installations.

Comments (0)

Files changed (1)

GCC_XML/Support/GCC/find_flags

 # Find the include path options.
 INCLUDES=`
   echo "" | ${CXX} -v -x c++ -E ${CXXFLAGS} - 2>&1 |
-  awk '/^\#include <.*$/   {f=1}
-       /^ \/.*$/           { if (f) { printf("-I%s ",$0) } }
-       /^End of search.*$/ {printf("\n"); exit}' - |
+  awk '/^[^ \/].*$/ { if (f) { printf("\n"); exit } }
+       /^[ ]*\/.*$/ { if (f) { printf("-I%s ",$0) } }
+       /\#include <\.\.\..*$/   {f=1} ' - |
   sed 's/^-I /-I/;s/ -I / -I/g'
 `