pawosm-arm wrote:

> > with -fveclib=ArmPL -lamath put into a config file, it will always be 
> > linked with libamath, even if the user decides to use -fveclib=none
> 
> I think there might be a related issue with the approach in this patch too 
> though, in that `-fveclib=ArmPL` will silently force linking to `amath` for 
> _all_ math functions, rather than just the veclib functions, if we add 
> `-lamath` as in this patch. I guess this could be resolved by changing the 
> order of the `-l` options (i.e. have `-lm` first, so that symbols from it are 
> selected first)?

I missed your comment, seems it's the same issue we were discussing with 
libamath team, They recommended to use `-lm -lamath -lm` chain of flags.

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

Reply via email to