[flang-commits] [flang] [flang] Fix Driver/do_concurrent_to_omp_cli.f90 test not to use runtime (PR #135485)

Michał Górny via flang-commits flang-commits at lists.llvm.org
Sat Apr 12 01:54:03 PDT 2025


https://github.com/mgorny created https://github.com/llvm/llvm-project/pull/135485

Fix Flang invocation in `Driver/do_concurrent_to_omp_cli.f90` test to run compilation step only, to fix testing when building with `-DFLANG_INCLUDE_RUNTIME=OFF`.  The test is only concerned with warning being emitted by the compiler, so there is no need to link the resulting executable.

>From 99588564fd523d7fe8d15734d532765ab3bb74ea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny at gentoo.org>
Date: Sat, 12 Apr 2025 10:52:03 +0200
Subject: [PATCH] [flang] Fix Driver/do_concurrent_to_omp_cli.f90 test not to
 use runtime

Fix Flang invocation in `Driver/do_concurrent_to_omp_cli.f90` test
to run compilation step only, to fix testing when building with
`-DFLANG_INCLUDE_RUNTIME=OFF`.  The test is only concerned with warning
being emitted by the compiler, so there is no need to link the resulting
executable.
---
 flang/test/Driver/do_concurrent_to_omp_cli.f90 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flang/test/Driver/do_concurrent_to_omp_cli.f90 b/flang/test/Driver/do_concurrent_to_omp_cli.f90
index 41b7575e206af..bdb603f35639d 100644
--- a/flang/test/Driver/do_concurrent_to_omp_cli.f90
+++ b/flang/test/Driver/do_concurrent_to_omp_cli.f90
@@ -10,7 +10,7 @@
 ! BBC:      -fdo-concurrent-to-openmp=<string>
 ! BBC-SAME:   Try to map `do concurrent` loops to OpenMP [none|host|device] 
 
-! RUN: %flang -fdo-concurrent-to-openmp=host %s 2>&1 \
+! RUN: %flang -c -fdo-concurrent-to-openmp=host %s 2>&1 \
 ! RUN: | FileCheck %s --check-prefix=OPT
 
 ! OPT: warning: OpenMP is required for lowering `do concurrent` loops to OpenMP.



More information about the flang-commits mailing list