[llvm-commits] [llvm] r56942 - in /llvm/trunk: include/llvm/System/Host.h lib/System/Host.cpp lib/System/Unix/Host.inc lib/System/Win32/Host.inc

Duncan Sands baldrick at free.fr
Fri Oct 3 00:14:25 PDT 2008


> clang had a need to rewrite the OS portion of the target triple to that
> of the host in some situations, and I didn't want it to embed a uname
> call.
> 
> Is your question related to the ambiguity of these queries?
> 
> If you dislike this approach, perhaps a better one would be to add
> functionality to get the target-triple of the host machine?

Actually, I was just wondering why you would want the target-triple
of the host.  After all, the target-triple is for the target not the
host!  I'd forgotten about clang - I suppose clang targets the host
by default.

Ciao,

Duncan.



More information about the llvm-commits mailing list