Devang Patel wrote: > This hack hard codes gcc version 4.2.3 and target triplet. This hack > opens door for multiple paths (each one for a unique combination of > gcc version # and target triplet. Which could turn this into ugly hack > very soon. > > A better alternative is to use a clang configure time option that > allows you to capture "/usr/lib/gcc/x86_64-linux-gnu/4.2.3/" as > GCC_HEADERS_PATH and then add GCC_HEADERS_PATH/include here. A clang > command line option to do the same would also work here, I guess. >
There is such a command-line option: $ clang -isystem /usr/lib/gcc/x86_64-linux-gnu/4.2.3/include foo.c So maybe that hack isn't needed after all. --Edwin _______________________________________________ cfe-dev mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
