[LLVMdev] Clang now included in Android NDK r8c

Greg Fitzgerald garious at gmail.com
Thu Jan 31 17:34:44 PST 2013


Yes, llvm-config.  Thanks for the pointer to the build script - that's what
I was looking for.

-Greg


On Thu, Jan 31, 2013 at 5:24 PM, Andrew Hsieh <andrewhsieh at google.com>wrote:

> You mean llvm-config? It was deleted after the build.  You can modify our
> build script build-llvm.sh to get it back.
> Clang/llvm-3.2 will be available in the next NDK release.  There is no
> plan to align release between NDK and the one in Chromium.
> You can rebuild it from source.  Assuming $AOSP points to your android
> tree.
>
> export NDK=$AOSP/ndk
> cd $NDK
> ./build/tools/download-toolchain-sources.sh /tmp/ndk-$USER/src
> ./build/tools/build-llvm.sh /tmp/ndk-$USER/src $NDK
> --package-dir=/tmp/ndk-$USER/prebuilt llvm-3.2 --try-64
>
> If you have lots of machine cycle to spare, you can rebuild the whole NDK
> package including clang-3.1 and clang-3.2
>
> sudo apt-get install texinfo gcc-mingw32 wine bison flex dmake
> ./build/tools/make-release.sh --force --also-64
>
> On Thu, Jan 31, 2013 at 5:01 PM, Greg Fitzgerald <garious at gmail.com>wrote:
>
>> Hi LLVM Android NDK developers,
>>
>> I was curious how clang was built for this release, but didn't find the
>> llvm-setup executable in the NDK.  Can you share how your build was
>> configured here?
>>
>> And I see the Chromium build distributes a separate version of clang that
>> looks to be somewhere beyond the 3.2 release.  Has there been any talk of
>> both Android and Chromium sharing the same clang?  Or is it that Chromium
>> needs to be on the bleeding edge for the Native Client stuff?  ...or
>> something like that?
>>
>> Thanks,
>> Greg
>>
>>
>> On Wed, Nov 14, 2012 at 7:19 AM, David Turner <digit at android.com> wrote:
>>
>>> cc +andrewhsieh +loganchien
>>>
>>> On Tue, Nov 13, 2012 at 11:21 PM, Joe Abbey <jabbey at arxan.com> wrote:
>>>
>>>> Hats off to the Android NDK team!
>>>>
>>>>
>>> Thanks for including me here, but I'd like to clarify that this is all
>>> from the really hard work of Andrew Hsieh and Logan Chien, and a few other
>>> Android engineers.
>>>
>>> (I'm actually not working on Android anymore, Andrew and Logan have
>>> taken over the NDK a year ago, and as you can see, they've been *very*productive :-))
>>>
>>> Congrats to them then !
>>>
>>> - David
>>>
>>> http://developer.android.com/tools/sdk/ndk/index.html
>>>>
>>>> Important changes:
>>>>
>>>>    - Added the Clang 3.1 compiler to the NDK. The GNU Compiler
>>>>    Collection (GCC) 4.6 is still the default, so you must explicitly enable
>>>>    the Clang compiler option as follows:
>>>>       - For ndk-build, export NDK_TOOLCHAIN_VERSION=clang3.1 *or* add
>>>>       this environment variable setting toApplication.mk.
>>>>       - For standalone builds, add --llvm-version=3.1 to
>>>>       make-standalone-toolchain.sh and replace CC andCXX in your
>>>>       makefile with <tool-path>/bin/clang and <tool-path>/bin/clang++.
>>>>       See STANDALONE-TOOLCHAIN.html for details.*
>>>>       Note:* This feature is experimental. Please try it and report
>>>>       any issues <http://code.google.com/p/android/issues/list>.
>>>>
>>>> Joe
>>>>
>>>>  *______________________________*
>>>> *Joe Abbey*
>>>> Director of Software Development
>>>> Arxan Technologies
>>>> jabbey at arxan.com www.arxan.com
>>>>  Protecting the App Economy™
>>>>
>>>>
>>>
>>> _______________________________________________
>>> LLVM Developers mailing list
>>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>>>
>>>
>>
>
>
> --
> Thanks,
> Andrew
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130131/46b5e1d3/attachment.html>


More information about the llvm-dev mailing list