Skip to content

[flang] Fix Driver/do_concurrent_to_omp_cli.f90 test not to use runtime #135485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2025

Conversation

mgorny
Copy link
Member

@mgorny mgorny commented Apr 12, 2025

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.

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.
@mgorny mgorny requested a review from ergawy April 12, 2025 08:53
@llvmbot llvmbot added flang:driver flang Flang issues not falling into any other category labels Apr 12, 2025
@llvmbot
Copy link
Member

llvmbot commented Apr 12, 2025

@llvm/pr-subscribers-flang-driver

Author: Michał Górny (mgorny)

Changes

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.


Full diff: https://github.com/llvm/llvm-project/pull/135485.diff

1 Files Affected:

  • (modified) flang/test/Driver/do_concurrent_to_omp_cli.f90 (+1-1)
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.

@mgorny mgorny merged commit a485abb into llvm:main Apr 14, 2025
14 checks passed
@mgorny
Copy link
Member Author

mgorny commented Apr 14, 2025

Thanks!

var-const pushed a commit to ldionne/llvm-project that referenced this pull request Apr 17, 2025
…me (llvm#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flang:driver flang Flang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants