[PATCH] D76433: [Syntax] Make TreeTest independent from the host platform.
    Marcel Hlopko via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Thu Mar 19 09:11:09 PDT 2020
    
    
  
hlopko updated this revision to Diff 251399.
hlopko added a comment.
Reformat
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76433/new/
https://reviews.llvm.org/D76433
Files:
  clang/unittests/Tooling/Syntax/TreeTest.cpp
Index: clang/unittests/Tooling/Syntax/TreeTest.cpp
===================================================================
--- clang/unittests/Tooling/Syntax/TreeTest.cpp
+++ clang/unittests/Tooling/Syntax/TreeTest.cpp
@@ -99,6 +99,9 @@
       Diags->setClient(new IgnoringDiagConsumer);
     // Prepare to run a compiler.
     std::vector<const char *> Args = {"syntax-test", "-std=c++11",
+                                      // Hard-setting target so the unit test
+                                      // behavior doesn't depend on the host.
+                                      "-target", "x86_64-unknown-unknown",
                                       "-fsyntax-only", FileName};
     Invocation = createInvocationFromCommandLine(Args, Diags, FS);
     assert(Invocation);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76433.251399.patch
Type: text/x-patch
Size: 781 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200319/6afb1ce2/attachment.bin>
    
    
More information about the cfe-commits
mailing list