[cfe-dev] Does clang work on X86-64 machines?

Török Edwin edwintorok at gmail.com
Sat Mar 1 01:46:35 PST 2008

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.


More information about the cfe-dev mailing list