[haskell-llvm] TARGET detection

Nathan Howell nathan.d.howell at gmail.com
Sat May 18 16:33:10 BST 2013


Agreed. Please make the change and send a pull request.


On Sat, May 18, 2013 at 3:44 AM, Henning Thielemann <
lemming at henning-thielemann.de> wrote:

>
> There are two methods in llvm-base for detecting the host target and
> adapting LLVM.Target.Native to it:
>
> 1) The configure script scans the output of $(llvm-config --libs) and
> extracts the target portion of libLLVM*CodeGen. Then it replaces the
> keyword TARGET in LLVM.Target.Native with the detected target.
>
> 2) The module LLVM.Target.Native calls the macro
> LLVMInitializeNativeTarget from llvm-c/Target.h which does the right thing.
>
>
> The second method is the one that is currently used. I propose to remove
> the first one since it is complicated and seems to be fragile.
>
> ______________________________**_________________
> Haskell-llvm mailing list
> Haskell-llvm at projects.haskell.**org <Haskell-llvm at projects.haskell.org>
> http://projects.haskell.org/**cgi-bin/mailman/listinfo/**haskell-llvm<http://projects.haskell.org/cgi-bin/mailman/listinfo/haskell-llvm>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://projects.haskell.org/pipermail/haskell-llvm/attachments/20130518/667fc717/attachment.htm>


More information about the Haskell-llvm mailing list