[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

Daniel Dunbar daniel at zuster.org
Thu Oct 2 09:21:36 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?

 - Daniel

On Thu, Oct 2, 2008 at 1:49 AM, Duncan Sands <baldrick at free.fr> wrote:
> Hi Daniel,
>
>> Add llvm::sys::{osName,osVersion} for retrieving operating system name
>> & version as strings.
>
> what are you planning to use this for?
>
> Ciao,
>
> Duncan.
>



More information about the llvm-commits mailing list