[all-commits] [llvm/llvm-project] d364ec: [NFC][OpenMP] Use clang_cc1 to driver tests

jsji via All-commits all-commits at lists.llvm.org
Fri Sep 3 13:34:23 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d364eccdd5a924d34284dca47ed8b029507167ce
      https://github.com/llvm/llvm-project/commit/d364eccdd5a924d34284dca47ed8b029507167ce
  Author: Jinsong Ji <jji at us.ibm.com>
  Date:   2021-09-03 (Fri, 03 Sep 2021)

  Changed paths:
    R clang/test/OpenMP/driver-fopenmp-extensions.c
    A clang/test/OpenMP/fopenmp-extensions.c

  Log Message:
  -----------
  [NFC][OpenMP] Use clang_cc1 to driver tests

The test driver-fopenmp-extensions.c is failing on platforms that does
not use integrated-as. It can be reproduced using -fno-integrated-as on
Linux too.

bin/clang -c -Xclang -verify=omp -fopenmp      -fopenmp-extensions
-fno-openmp-extensions
../llvm-project/clang/test/OpenMP/driver-fopenmp-extensions.c
-fno-integrated-as
Assembler messages:
Error: can't open /tmp/driver-fopenmp-extensions-8fafe8.s for reading:
No such file or directory
clang-14: error: assembler command failed with exit code 1 (use -v to
see invocation)

The goal of this test is to verify syntax diags only,
so we should use clang_cc1 to test.

Reviewed By: jdenny, ABataev

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




More information about the All-commits mailing list