[all-commits] [llvm/llvm-project] 633065: [unittest] Fix FrontendTests CanGenerateCC1Command...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Jun 24 16:19:16 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6330653547f492646c92553738dab6a99d7d9710
      https://github.com/llvm/llvm-project/commit/6330653547f492646c92553738dab6a99d7d9710
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-06-24 (Wed, 24 Jun 2020)

  Changed paths:
    M clang/unittests/Frontend/CompilerInvocationTest.cpp

  Log Message:
  -----------
  [unittest] Fix FrontendTests CanGenerateCC1CommandLineFlag when LLVM_DEFAULT_TARGET_TRIPLE is not normalized after D79796

`TargetOpts->Triple` is initialized as llvm::sys::getDefaultTargetTriple() which may not be normalized.
If LLVM_DEFAULT_TARGET_TRIPLE is powerpc64le-linux-gnu, we should check
check `-triple powerpc64le-linux-gnu`, instead of (normalized) `-triple powerpc64le-unknown-linux-gnu`




More information about the All-commits mailing list