[llvm] r289490 - Revert "Disable all llvm-config tests for now, will investigate later"
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 13 14:29:29 PST 2016
I've added a new flag to ignore libLLVM, can you please see if r289605 resolves your issue?
-Chris
> On Dec 13, 2016, at 2:27 PM, Derek Schuff <dschuff at google.com> wrote:
>
> Hm, for the BUILD_SHARED_LIBS case, it is actually true that there are no static libs built, and even if llvm-config --libs --link-static outputs the correct flags (-lSupport etc) a link using those flags will fail (or end up linking against the DSOs). Is that the behavior we want anyway?
>
> On Tue, Dec 13, 2016 at 2:19 PM Chris Bieneman <beanz at apple.com <mailto:beanz at apple.com>> wrote:
> That's a bug in llvm-config that needs to get fixed.
>
> -Chris
>
>> On Dec 13, 2016, at 2:18 PM, Derek Schuff <dschuff at google.com <mailto:dschuff at google.com>> wrote:
>>
>> Hm, sort of?
>> It does print the right thing for the dylib build. However when I try to use it with a -DBUILD_SHARED_LIBS build, llvm-config throws errors:
>> # bin/llvm-config --libs --link-static
>> llvm-config: error: missing: /s/llvm-upstream/build/lib/libLLVMDemangle.a
>> llvm-config: error: missing: /s/llvm-upstream/build/lib/libLLVMSupport.a
>> ... etc.
>>
>> Ironically, that would probably actually make the test pass as written :/
>>
>> On Tue, Dec 13, 2016 at 2:07 PM Chris Bieneman <beanz at apple.com <mailto:beanz at apple.com>> wrote:
>> I believe the flag --link-static covers this use case.
>>
>> -Chris
>>
>>> On Dec 13, 2016, at 2:02 PM, Derek Schuff <dschuff at google.com <mailto:dschuff at google.com>> wrote:
>>>
>>> Hi Chris,
>>> There does seem to be one bit of breakage hiding behind this disabled test; namely for the LLVM_{BUILD,LINK}_LLVM_DYLIB case, where `llvm-config --libs` emits '-lLLVM-4.0svn` rather than '-lLLVMCore' etc. tools/llvm-config/libs.test explicitly checks that LLVMCore and LLVMSupport are included. Any ideas about how to support both build cases?
>>>
>>> On Mon, Dec 12, 2016 at 3:25 PM Chris Bieneman via llvm-commits <llvm-commits at lists.llvm.org <mailto:llvm-commits at lists.llvm.org>> wrote:
>>> Author: cbieneman
>>> Date: Mon Dec 12 17:14:58 2016
>>> New Revision: 289490
>>>
>>> URL: http://llvm.org/viewvc/llvm-project?rev=289490&view=rev <http://llvm.org/viewvc/llvm-project?rev=289490&view=rev>
>>> Log:
>>> Revert "Disable all llvm-config tests for now, will investigate later"
>>>
>>> This reverts commit r260386.
>>>
>>> These tests all pass for me locally. I have no idea if they will pass on all configurations, so I'll watch the bots closely.
>>>
>>> Removed:
>>> llvm/trunk/test/tools/llvm-config/lit.local.cfg
>>>
>>> Removed: llvm/trunk/test/tools/llvm-config/lit.local.cfg
>>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-config/lit.local.cfg?rev=289489&view=auto <http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-config/lit.local.cfg?rev=289489&view=auto>
>>> ==============================================================================
>>> --- llvm/trunk/test/tools/llvm-config/lit.local.cfg (original)
>>> +++ llvm/trunk/test/tools/llvm-config/lit.local.cfg (removed)
>>> @@ -1,2 +0,0 @@
>>> -# Disable all llvm-config tests for now.
>>> -config.unsupported = True
>>>
>>>
>>> _______________________________________________
>>> llvm-commits mailing list
>>> llvm-commits at lists.llvm.org <mailto:llvm-commits at lists.llvm.org>
>>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits <http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161213/bca71916/attachment-0001.html>
More information about the llvm-commits
mailing list