[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
Mon Dec 2 08:29:31 PST 2024


================
@@ -0,0 +1 @@
+-ffast-math -Wl,--as-needed | -lm -Wl,-Bstatic -lhappy -Wl,-Bdynamic
----------------
DavidTruby wrote:

Could we just pick a character to prefix each argument with that indicates that that argument should come at the end? `$` maybe?
e.g. 
```
-ffast-math $-lm 
-Wl,--as-needed, $-Wl,-Bstatic 
$-lhappy $-Wl,-Bdynamic
```
It's a bit messy compared to your pipe idea but maybe easier to implement?

https://github.com/llvm/llvm-project/pull/117573


More information about the flang-commits mailing list