[all-commits] [llvm/llvm-project] b36d67: [flang]Fix build failure in tests

Mats Petersson via All-commits all-commits at lists.llvm.org
Thu Nov 3 11:54:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b36d678b8e75ec8eb09d2b7e9513884f99d15f0a
      https://github.com/llvm/llvm-project/commit/b36d678b8e75ec8eb09d2b7e9513884f99d15f0a
  Author: Mats Petersson <mats.petersson at arm.com>
  Date:   2022-11-03 (Thu, 03 Nov 2022)

  Changed paths:
    M flang/test/Fir/boxchar.fir
    M flang/test/Fir/inline.fir

  Log Message:
  -----------
  [flang]Fix build failure in tests

After submitting the DataLayout fix, some tests fail when they didn't
before. This has to do with the target essentially being ignored when
these tests were run earlier, as the --target x86-unknown-linux-gnu
only has to be correctly formed to be accepted.

Now the target triple is actually being used to get the targetmachine
earlier - before MLIR is generated - so the test that has a valid target
but not available on the platform fails.

Fix is to require x86 registered target when running those tests.

Reviewed By: awarzynski

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




More information about the All-commits mailing list