[lldb-dev] Conditionally adding sources to the build
Pavel Labath via lldb-dev
lldb-dev at lists.llvm.org
Fri Dec 2 02:29:08 PST 2016
I am glad to see freebsd is making progress on this front. If you need any
help with understanding how lldb-server works, feel free to shoot me a
question.
pl
On 1 December 2016 at 23:00, Dmitry Mikulin <dmitrym at juniper.net> wrote:
> Thanks for the suggestions.
> I’m working on native support for FreeBSD lldb-server, and wanted to have
> an option to build it both ways until it’s stable enough to replace current
> implementation. I’ll have it in a separate directory.
>
>
> On Dec 1, 2016, at 2:55 AM, Pavel Labath <labath at google.com> wrote:
>
> The way we have done this with Linux native register contexts was to
> notionally leave the files in the build, but completely #ifdef out their
> contents (see NativeRegisterConextLinux_arm.cpp).
> It's not very nice, but I think it's better than having six subfolders,
> each with a single cpp file. If you'll need to group more than one file
> this way, then maybe a subfolder would make more sense though.
>
> pl
>
> On 1 December 2016 at 00:30, Zachary Turner via lldb-dev <
> lldb-dev at lists.llvm.org> wrote:
>
>> Unfortunately you will need to separate them at the directory levels.
>>
>> On Wed, Nov 30, 2016 at 4:29 PM Dmitry Mikulin via lldb-dev <
>> lldb-dev at lists.llvm.org> wrote:
>>
>>> Hi,
>>>
>>> I’m trying to conditionally add source files to the lldb build based on
>>> a cmake configure time variable. I get the following type of errors for all
>>> sources not included in the build:
>>>
>>> CMake Error at cmake/modules/LLVMProcessSources.cmake:83 (message):
>>> Found unknown source file
>>> /homes/dmitrym/buildspace/llvm-tot/llvm/tools/lldb/source/
>>> Plugins/Process/FreeBSD/FreeBSDThread.cpp
>>>
>>> Please update
>>> /homes/dmitrym/buildspace/llvm-tot/llvm/tools/lldb/source/
>>> Plugins/Process/FreeBSD/CMakeLists.txt
>>>
>>> Is there a way to work around/fix it or do I need to separate the files
>>> at the directory level?
>>>
>>> Thanks.
>>> Dmitry.
>>>
>>> _______________________________________________
>>> lldb-dev mailing list
>>> lldb-dev at lists.llvm.org
>>> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
>>>
>>
>> _______________________________________________
>> lldb-dev mailing list
>> lldb-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20161202/75a19308/attachment.html>
More information about the lldb-dev
mailing list