[cfe-commits] r146051 - /cfe/trunk/runtime/compiler-rt/Makefile

Daniel Dunbar daniel at zuster.org
Wed Dec 7 13:07:20 PST 2011


On Wed, Dec 7, 2011 at 1:01 PM, Kostya Serebryany <kcc at google.com> wrote:
> Thanks!
>
> Question:
> There seem to be no way to build 32- and 64-bit linux libraries with a
> single make command.
> Am I right?

Yes.

> Do you plan to change this?

I would like to, but it's a tad tricky with the current level of build
support we have. This is also a cumbersome area to test because it
really varies quite a lot based on the host Linux system, and there is
so much diversity amongst distributions. I really wish we had a good
farm of different common Linux distros available.

> This change requires to fix the asan driver
> in tools/clang/lib/Driver/Tools.cpp, I'll prepare a patch unless you have it
> ready.

I'll fix it, I'm in the area.

> Evgeniy, could you please prepare a similar patch for linux/arm (take
> r146051 and r145950 as an example)

This is going to be hard. Unless I am mistaken, there is little to no
standard for how to find the ARM toolchain to use to cross compile. Am
I mistaken?

My long term plan for fixing this is to make it blocked on good cross
compilation support in Clang, but I understand that is not ideal if
you want ASAN/ARM available in Clang ASAP.

 - Daniel

>
> --kcc
>
>
>
> On Wed, Dec 7, 2011 at 11:35 AM, Daniel Dunbar <daniel at zuster.org> wrote:
>>
>> Author: ddunbar
>> Date: Wed Dec  7 13:35:10 2011
>> New Revision: 146051
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=146051&view=rev
>> Log:
>> runtime/Linux: Include the profile and ASAN libs on x86.
>>
>> Modified:
>>    cfe/trunk/runtime/compiler-rt/Makefile
>>
>> Modified: cfe/trunk/runtime/compiler-rt/Makefile
>> URL:
>> http://llvm.org/viewvc/llvm-project/cfe/trunk/runtime/compiler-rt/Makefile?rev=146051&r1=146050&r2=146051&view=diff
>>
>> ==============================================================================
>> --- cfe/trunk/runtime/compiler-rt/Makefile (original)
>> +++ cfe/trunk/runtime/compiler-rt/Makefile Wed Dec  7 13:35:10 2011
>> @@ -93,10 +93,12 @@
>>
>>  # We currently only try to generate runtime libraries on x86.
>>  ifeq ($(ARCH),x86)
>> -RuntimeLibrary.linux.Configs += full-i386
>> +RuntimeLibrary.linux.Configs += \
>> +       full-i386 profile-i386 asan-i386
>>  endif
>>  ifeq ($(ARCH),x86_64)
>> -RuntimeLibrary.linux.Configs += full-x86_64
>> +RuntimeLibrary.linux.Configs += \
>> +       full-x86_64 profile-x86_64 asan-x86_64
>>  endif
>>
>>  endif
>>
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>




More information about the cfe-commits mailing list