#1075: Add Configure probes for LLVM
-------------------------+--------------------------------------------------
Reporter: whiteknight | Owner: jkeenan
Type: todo | Status: assigned
Priority: normal | Milestone: 2.0
Component: configure | Version: 1.6.0
Severity: medium | Keywords: jit configure
Lang: | Patch:
Platform: all |
-------------------------+--------------------------------------------------
Comment(by jkeenan):
Replying to [comment:1 jkeenan]:
> Have created ''detect_llvm'' branch in repository to conduct initial
exploration of these issues.
I have made some progress on this in the ''detect_llvm'' branch; see
attachment. I have created a configuration step `auto::llvm` which probes
for LLVM by following the example provided at
[http://llvm.org/releases/2.5/docs/GettingStarted.html#tutorial4 Getting
Started with the LLVM System]. I have also added a test for this in
''t/steps''. Both the step and the test DWIM on (a) my Linux/x86 box
where LLVM has been installed (via Debian package) and (b) on my
Darwin/PPC laptop where LLVM has not been installed.
Because the LLVM documentation indicates that the older version of its
customized C compiler, ''llvm-gcc'' is considered obsolete, I made the
decision to reject versions of ''llvm-gcc'' before major version 4.
Since we're not doing anything with LLVM yet, there's no rush to merge
this patch into trunk. That can wait until Whiteknight and his merry band
of JIToriosi decide what we will do with LLVM. Other functionality which
we should probably explore before any merge would include:
* That page from llvm.org indicates that the final part of the probe,
assembling the native assembly language file into a program, would be
invoked differently on Solaris from other OSes: `/opt/SUNWspro/bin/cc
-xarch=v9 hello.s -o hello.native`. This should be tested and
incorporated into the step somehow. (Paging Andy D!)
* It should be tested on Win32, perhaps with [http://llvm.org/releases/2.5
/llvm-gcc4.2-2.5-x86-mingw32.tar.bz2 this binary].
* It should be tested on some box where LLVM has been built from source
code.
Thank you very much.
kid51
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1075#comment:2>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets