[flang-commits] [clang] [flang] [clang][driver] Special care for -l flags in config files (PR #117573)
David Truby via flang-commits
flang-commits at lists.llvm.org
Tue Nov 26 05:01:29 PST 2024
================
@@ -61,3 +61,24 @@
! CHECK-TWO-CONFIGS-NEXT: Configuration file: {{.*}}Inputs{{.}}config2{{.}}config-4.cfg
! CHECK-TWO-CONFIGS: -ffp-contract=fast
! CHECK-TWO-CONFIGS: -O3
+
+!--- The -l 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 -o %s.out %s -### 2>&1 | FileCheck %s -check-prefix CHECK-LINKING
----------------
DavidTruby wrote:
Just to add: the `-fopenmp` handling works differently on Windows so no need to add tests for that here, it's tested elsewhere and not affected by this change.
https://github.com/llvm/llvm-project/pull/117573
More information about the flang-commits
mailing list