[PATCH] D21810: Don't instantiate a full host toolchain in ASTMatchersTest.

Justin Lebar via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 28 13:00:16 PDT 2016

jlebar added inline comments.

Comment at: unittests/ASTMatchers/ASTMatchersTest.h:81-83
@@ +80,5 @@
+  //
+  // FIXME: This is a hack to work around the fact that there's no way to do the
+  // equivalent of runToolOnCodeWithArgs without instantiating a full Driver.
+  // We should consider having a function, at least for tests, that invokes cc1.
+  std::vector<std::string> Args = {CompileArg, "-frtti", "-fexceptions",
klimek wrote:
> Couldn't we use -ccc-install-dir to prevent toolchain search?
> Couldn't we use -ccc-install-dir to prevent toolchain search?

I tried -ccc-install-dir /does/not/exist and it had no speedup relative to the original.


More information about the cfe-commits mailing list