On Thursday, 16 November 2017 10:16 AM, Russ Allbery wrote:
> gcc -print-multiarch will give you what I think is the path component we
> use, although I'm not 100% sure that we always use that value.

> I don't see an equivalent for clang, but:
>    clang -print-search-dirs | sed 's/:/\n/g' | egrep '^/lib/[^/]+$' | sed 
> 's%.*/%%'
should do it.

What about just calling clang like this?
    clang -dumpmachine | sed 's/pc-//'

But how can we link this output to CC?

Reply via email to