[all-commits] [llvm/llvm-project] 305ac8: Fix macos target assumption in test

RoboTux via All-commits all-commits at lists.llvm.org
Fri Jan 29 02:22:18 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 305ac81e1d4bbd037587190175e4d0b5631300e1
      https://github.com/llvm/llvm-project/commit/305ac81e1d4bbd037587190175e4d0b5631300e1
  Author: Thomas Preud'homme <thomasp at graphcore.ai>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M clang/test/Driver/macos-apple-silicon-slice-link-libs-darwin-only.cpp

  Log Message:
  -----------
  Fix macos target assumption in test

Clang test Driver/macos-apple-silicon-slice-link-libs-darwin-only.cpp
assumes the target is darwin when the host is darwin which is not
necessarily the case, causing the test to fail when it is not. This
commit adds a -triple argument to the clang invocation to ensure the
target is darwin.

Reviewed By: hans

Differential Revision: https://reviews.llvm.org/D94396




More information about the All-commits mailing list