[flang-commits] [flang] [test][flang][driver] Fix test that assumes libomp default (PR #119368)

Paul Osmialowski via flang-commits flang-commits at lists.llvm.org
Tue Dec 10 04:33:11 PST 2024


https://github.com/pawosm-arm created https://github.com/llvm/llvm-project/pull/119368

This patch supplements the fix introduced by PR #119319.

>From 2f03ba8668009872b84f9181b8b753a13aa668b1 Mon Sep 17 00:00:00 2001
From: Pawel Osmialowski <pawel.osmialowski at arm.com>
Date: Tue, 10 Dec 2024 12:24:51 +0000
Subject: [PATCH] [test][flang][driver] Fix test that assumes libomp default

This patch supplements the fix introduced by PR #119319.
---
 flang/test/Driver/config-file.f90 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/flang/test/Driver/config-file.f90 b/flang/test/Driver/config-file.f90
index 9cf34215c6adab..6991fda9bd4830 100644
--- a/flang/test/Driver/config-file.f90
+++ b/flang/test/Driver/config-file.f90
@@ -64,9 +64,9 @@
 
 !--- The linker input flags should be moved to the end of input list and appear only when linking.
 ! RUN: %flang --target=aarch64-unknown-linux-gnu --config %S/Inputs/config-l.cfg %s -lmylib -Wl,foo.a -### 2>&1 | FileCheck %s -check-prefix CHECK-LINKING
-! RUN: %flang --target=aarch64-unknown-linux-gnu --config %S/Inputs/config-l.cfg -fopenmp %s -lmylib -Wl,foo.a -### 2>&1 | FileCheck %s -check-prefix CHECK-LINKING-LIBOMP-GOES-AFTER
+! RUN: %flang --target=aarch64-unknown-linux-gnu --config %S/Inputs/config-l.cfg -fopenmp=libomp %s -lmylib -Wl,foo.a -### 2>&1 | FileCheck %s -check-prefix CHECK-LINKING-LIBOMP-GOES-AFTER
 ! RUN: %flang --target=aarch64-unknown-linux-gnu --config %S/Inputs/config-l.cfg -S %s -### 2>&1 | FileCheck %s -check-prefix CHECK-NOLINKING
-! RUN: %flang --target=aarch64-unknown-linux-gnu --config %S/Inputs/config-l.cfg -fopenmp -S %s -### 2>&1 | FileCheck %s -check-prefix CHECK-NOLINKING-OPENMP
+! RUN: %flang --target=aarch64-unknown-linux-gnu --config %S/Inputs/config-l.cfg -fopenmp=libomp -S %s -### 2>&1 | FileCheck %s -check-prefix CHECK-NOLINKING-OPENMP
 ! RUN: %flang --target=x86_64-pc-windows-msvc    --config %S/Inputs/config-l.cfg %s -lmylib -Wl,foo.lib -### 2>&1 | FileCheck %s -check-prefix CHECK-LINKING-MSVC
 ! RUN: %flang --target=x86_64-pc-windows-msvc    --config %S/Inputs/config-l.cfg -S %s -### 2>&1 | FileCheck %s -check-prefix CHECK-NOLINKING-MSVC
 ! CHECK-LINKING: Configuration file: {{.*}}Inputs{{.}}config-l.cfg



More information about the flang-commits mailing list