Displaying 5 results from an estimated 5 matches for "llvm_rev".
2009 May 18
0
[LLVMdev] [PATCH] llvm-config: add svn revision to --version
...he llvm build system (both autotools and 
> cmake) to write the revision into PACKAGE_VERSION:
> 
> $ llvm-config --version
> 2.6-71981
I don't think that's enough for LDC; we want to be able to compare the version 
with #if, so we need it to produce something like '#define LLVM_REV 71981' (i.e. 
a raw integer, not a string).
2009 May 18
4
[LLVMdev] [PATCH] llvm-config: add svn revision to --version
At the moment llvm-config outputs "2.6svn" if llvm is build from trunk
$ llvm-config --version
2.6svn
Some external projects (built out-of-tree) need to know which revision  
of llvm is installed. LDC currently asks llvm-config --src-root for  
the source directory and then parses svn info's output to get the  
revision number. This requires the user to keep the llvm source tree  
2009 May 18
2
[LLVMdev] [PATCH] llvm-config: add svn revision to --version
...gt;> cmake) to write the revision into PACKAGE_VERSION:
>>
>> $ llvm-config --version
>> 2.6-71981
>>     
>
> I don't think that's enough for LDC; we want to be able to compare the version 
> with #if, so we need it to produce something like '#define LLVM_REV 71981' (i.e. 
> a raw integer, not a string).
>   
When we build Icedtea shark JIT we use the llvm-config version to make 
the icedtea code compatible with api changes in llvm.
I belive you are trying to do something similarwith LDC. This can be 
done without changing the llvm codebase....
2009 May 18
0
[LLVMdev] [PATCH] llvm-config: add svn revision to --version
...rite the revision into PACKAGE_VERSION:
>>>
>>> $ llvm-config --version
>>> 2.6-71981
>>>     
>> I don't think that's enough for LDC; we want to be able to compare the version 
>> with #if, so we need it to produce something like '#define LLVM_REV 71981' (i.e. 
>> a raw integer, not a string).
>>   
> When we build Icedtea shark JIT we use the llvm-config version to make 
> the icedtea code compatible with api changes in llvm.
> I belive you are trying to do something similarwith LDC. This can be 
> done without c...
2009 May 18
3
[LLVMdev] [PATCH] llvm-config: add svn revision to --version
...t;>
>>>> $ llvm-config --version
>>>> 2.6-71981
>>>>     
>>>>         
>>> I don't think that's enough for LDC; we want to be able to compare the version 
>>> with #if, so we need it to produce something like '#define LLVM_REV 71981' (i.e. 
>>> a raw integer, not a string).
>>>   
>>>       
>> When we build Icedtea shark JIT we use the llvm-config version to make 
>> the icedtea code compatible with api changes in llvm.
>> I belive you are trying to do something similarwi...