================
@@ -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:

Sorry, the comments about -Bstatic/-Bdynamic that I made were from a draft of 
this comment that I didn't mean to send 😓 -Wl,... options like -Bstatic and 
-Bdynamic will just be passed on to the linker the same as on other platforms, 
regardless of if the linker will accept them or not (and it won't for these two 
but that doesn't really matter for the purposes of the test)

https://github.com/llvm/llvm-project/pull/117573
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to