[cfe-dev] diff for clang environment variables/paths

Kelly Wilson wilsonk at cpsc.ucalgary.ca
Wed Aug 22 21:06:40 PDT 2007


Sorry about that one, I didn't really think it was a good general 
solution. I will check ExecuteAndWait() or similar from the libSystem.


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

More information about the cfe-dev mailing list