[prev in list] [next in list] [prev in thread] [next in thread]
List: cfe-dev
Subject: [cfe-dev] diff for clang environment variables/paths
From: wilsonk () cpsc ! ucalgary ! ca (Kelly Wilson)
Date: 2007-08-23 4:06:40
Message-ID: Pine.LNX.4.63.0708222134280.23098 () csl
[Download RAW message or body]
Ahh,
Sorry about that one, I didn't really think it was a good general
solution. I will check ExecuteAndWait() or similar from the libSystem.
Thanks,
K.Wilson
On Thu, 23 Aug 2007, Anton Korobeynikov wrote:
> Hello,
>
>> Using fork, execv("cpp", ["cpp", "-v"]) and reading stderr, you might
>> be able to have the same functionality without creating a tempfile
>> with a fixed name and using system().
> Both approaches are bad, unfortunately: fork is not portable. And code
> shouldn't call std::system directly, only via LLVM's libSystem.
>
> --
> With best regards, Anton Korobeynikov.
>
> Faculty of Mathematics & Mechanics, Saint Petersburg State University.
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic