[cfe-dev] diff for clang environment variables/paths
Anton Korobeynikov
asl at math.spbu.ru
Wed Aug 22 17:14:16 PDT 2007
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.
More information about the cfe-dev
mailing list