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

via flang-commits flang-commits at lists.llvm.org
Tue Dec 10 05:52:59 PST 2024


Author: Paul Osmialowski
Date: 2024-12-10T13:52:55Z
New Revision: f8a1f42dd5e2f57e4b0bdd8102c4f6d82e869747

URL: https://github.com/llvm/llvm-project/commit/f8a1f42dd5e2f57e4b0bdd8102c4f6d82e869747
DIFF: https://github.com/llvm/llvm-project/commit/f8a1f42dd5e2f57e4b0bdd8102c4f6d82e869747.diff

LOG: [test][flang][driver] Fix test that assumes libomp default (#119368)

This patch supplements the fix introduced by PR #119319.

Added: 
    

Modified: 
    flang/test/Driver/config-file.f90

Removed: 
    


################################################################################
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